Enabling a gun to shoot if its in your hands

I would like to be able to pick up weapons off the ground and when that gun is put into your hands that script would be enabled. Does anyone know how to do that, and is that possible thank you for your time. I only have unity3D free.

Pick up weapons off the ground - look at OnTrigger; if the gun has an OnTrigger event it could be scripted to snap to a fixed Transform/Rotation so that it’s visually “in your hands”.

The gun might have a script that looks for Input.GetAxis(“Fire”) and if so it instantiates a prefab bullet and shoots it.