Jim the Hermit
Member
I created a Pickup_shotgun. It works fine. I made another weapon (shotgunclub) the AI to use (using the sword animations).
In the shotgunclub, the Drop Prefab is Dropped_shotgun, which has the same values as the Pickup_shotgun. Now, when the AI dies, it drops the Dropped_shotgun but the player can't pick it up. It displays the Pickup Message Text and plays the audio but the player doesn't get the weapon or the ammo.
When the AI dies, I get an error message:
transform.position assign attempt for 'Dropped_shotgun(Clone)' is not valid. Input position is { NaN, NaN, NaN }. UnityEngine.Transform:set_position (UnityEngine.Vector3)
I know the Dropped weapon works, because I can place it in the scene and pick it up that way.
In the shotgunclub, the Drop Prefab is Dropped_shotgun, which has the same values as the Pickup_shotgun. Now, when the AI dies, it drops the Dropped_shotgun but the player can't pick it up. It displays the Pickup Message Text and plays the audio but the player doesn't get the weapon or the ammo.
When the AI dies, I get an error message:
transform.position assign attempt for 'Dropped_shotgun(Clone)' is not valid. Input position is { NaN, NaN, NaN }. UnityEngine.Transform:set_position (UnityEngine.Vector3)
I know the Dropped weapon works, because I can place it in the scene and pick it up that way.