- Home /
First Person Shooter gun
Hello Unity community! i am new to using unity and so far love it, i have plants, trees, lights, terrain, but i cant seem to find out how to add a gun and how to shoot it! I looked around here and google for some tutoreals but could not find any. i downloaded from unity magic the free version of there pistol w/ clip. i have imported it and its not in my projects folder, i am lost from here on. If anybody could link me to a place were i can learn it, or tell me here it would be greatly helpful.
Answer by rowdyp · Mar 12, 2011 at 12:14 AM
bring in your gun and attach it as a child to your fps controller under the main camera then mess with the values on the inspector until the gun is where you like it. The advantage of attaching it to the fps camera is it will automatically follow the camera
Okay, i got it in view that i like and it walks with my person! However, it come with a clip and its hoving right beside it... how would i go about using it (like firing it?) i used out of the pack ->prefabs ->GUN
Answer by Uriel_96 · Mar 12, 2011 at 01:08 AM
look at this page of unity http://unity3d.com/unity/editor/importing and this video http://www.youtube.com/watch?v=zRGzG-H_uyE&feature=related here you can see all the ways you can import a model to unity and you can get models in this page: http://www.turbosquid.com/
then for shoot you can get an idea in this video http://www.youtube.com/watch?v=enLEpL0DrPM and http://www.youtube.com/watch?v=wfpZ7_aFoko&NR=1&feature=fvwp
Thanks for the link, however they did not help, he was using a code i did not have for the worm tutorial. Please check out: http://www.unitymagic.com/shop/en/free-lowpoly-handgun.html That is the gun i am using, If anyone knows how to USE THIS prefab, please let me know.
Answer by Jason_DB · Apr 13, 2011 at 10:17 PM
There are two basic ways to go about making an FPS gun. You could either send out raycasts along the camera or instantiate an actual bullet projectile.
If you're interested in pre-made scripts with tutorials for an FPS, try my FPS package
Answer by Sidp · Nov 08, 2013 at 10:52 AM
Hey look at this video tutorials from TornadoTwins
http://www.youtube.com/watch?v=5-X-Ebh1kYA&list=PL74F71544CE701190
Hope this may help you..:)
Your answer
Follow this Question
Related Questions
Gun Firing help? 2 Answers
FPS gun movement 1 Answer
FPS one hands/arms model with multiple weapons/guns models 1 Answer
using ironsights wont work standing still 0 Answers
FPS Aim Down Sights. Exact Position. 1 Answer