- Home /
FPS Weapon Pickup
I just really don't know what to do.
I got two models,
1
Displayed on floor just the sword model
2
Shows the arm attached to the weapon in the first person cam.
How can I make the first person pick it up and display model 2?
Thanks alot.
Your question sounds like: "Please, do everything for me."
You'll have better responses if you ask specific questions.
Answer by aldonaletto · Oct 13, 2012 at 04:05 PM
This is a very common question, and you may find several answers here - type "weapon pickup" in the Search... box on the top of this page, or google for it.
Anyway, the most common solution is to attach all weapons to the player in the Editor, and let only one of them activated. When you find a weapon, usually it is just a model with a trigger volume: when the player enters the trigger, the model is destroyed and the weapon script enables switching to the new item. In the weapon switching script, activate the selected weapon and deactivate all the others.
Here are some answers I've wrote on this subject:
http://answers.unity3d.com/questions/294476/weapon-pickup-and-change.html?sort=oldest http://answers.unity3d.com/questions/251867/weapon-pick-up-and-hit-particle.html http://answers.unity3d.com/questions/211184/pick-up-the-gun.html
Answer by Subzero619 · Oct 14, 2012 at 03:06 PM
Thanks alot, really helpful but I don't understand. I thought this is how it happens theres a sword on the floor, guy walks up to it and it goes into his hand. Isn't that something to do with collision?