- Home /
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.
Answer by getyour411 · Jan 16, 2014 at 07:53 AM
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.
im sorry but i dont know what any of this is because i am just starting unity and am only 16
TBH, if you intend to pursue making this game, you'll need to learn some basics. Try this http://www.unity3dstudent.com/get-help/
Your answer
![](https://koobas.hobune.stream/wayback/20220613130601im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Problems With Weapon Sway 0 Answers
error CS0117: `Util' does not contain a definition for `SetLayerRecursively 0 Answers
Weapon database/dictionary design 0 Answers
Weird Unity Editor bugs. 0 Answers
Limited Ammo? Help 1 Answer