\\\Weapon laying on the Ground pickup code///

I need Weapon to lay on the ground and when I collided with it. its in my players weapons script or is their another way to do this? thanks in advance

190799–6761–$playerweapons_162.js (825 Bytes)

Place a Trigger on your weapon. Then in OnTriggerEntered remove the object from the world (Destroy) and add it to your inventory.

You may need a rigidbody component on the collider (I can’t remember at the moment) to have the OnTriggerEntered events fire.