- Home /
moving gun in first person shooter while walking
Hi, Glacier Entertainment and Studios (c) here, well my studios and I are new to unity and are creating an FPSMMORPG, we have everything set up, but now we are getting more into the detailed area. When in first person view, I see my gun but it is completely static. This looks very ugly and I would like to fix/ change it. Another thing is reloading. When the gun reloads it just pauses fire for a few seconds and moves on, how would I create an animation for the hands/ gun to look as though I am reloading. I do plan on making profit on this game so I am taking this very seriously ( also I am taking my time with this project, I am still learning about Unity and it's components so dont criticize to badly!... please).
Thankyou,
Codex1770c
Answer by Epic · Jun 03, 2010 at 05:00 PM
http://dastardlybanana.com/FPSConstructorWeapons.htm
This si quite good
Dastardlybanana has amazing weapon tutorial. It completes many features weapons need
Getting their package will save you many hours of work. Their code is easy to understand and learn from
Answer by Jaap Kreijkamp · Mar 09, 2010 at 03:27 AM
As you're apparently in First Person View you could do with creating a few bones for the player arm (if hand is visible give it a mesh as well), animate this arm, attach the gun to the hand, and you're set. If you have option to view yourself in third person (or other players), you could as well give your character a complete skeleton and of course a body/mesh.
Basically, look at the animation demos, and imagine attaching the camera to head of the puppet, if your body is never in sight, you can optimize performance a bit by turning off the meshrenderer of your player (or put it in a layer you don't draw with your camera).
Answer by Codex1770c · Mar 09, 2010 at 10:56 PM
yeah I was thinking of that too, but what if he wanted to have multiple weapons?... oh I know, I have a different arm for each weapon!!!
Answer by Not showing my name · Apr 14, 2010 at 10:53 PM
um... If you wanted to make a SINGLE PLAYER, you could get the first person player file off of unity3d. I have no clue how to help you with MULTIPLAYER.
Answer by 88bueno · Jun 17, 2010 at 03:56 AM
You could make a single character model, and put ALL weapons in his hand, but only render one at a time. I'm working on a crazy fighting game, and that's what I did. Each character controller has almost 100 items to them, from guns to swords to grenades. wings. but it only renders when I tell it to in-game. The whole renderer.enabled: Boolean thing is a life-saver!
Your answer
Follow this Question
Related Questions
Aiming Gun at Cursor 2 Answers
Question about Gun Sounds 1 Answer
how to make bullets apply damage 1 Answer
Problems with a shooting script 1 Answer