• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
3
Question by flacstar · Mar 12, 2011 at 12:11 AM · fpsgunwhere-to-startwhere-to-get-assets

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.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

4 Replies

· Add your reply
  • Sort: 
avatar image
1

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

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image flacstar · Mar 12, 2011 at 12:23 AM 0
Share

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

avatar image
0

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

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image flacstar · Mar 12, 2011 at 02:05 AM 0
Share

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.

avatar image
0

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

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

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..:)

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Related Questions

How to add gun to the model, as when it animate, the gun is dis-positioned. 2 Answers

Problem with camera 1 Answer

FPS Scripting Problems 2 Answers

Some issues with weapon switching and reloading? 2 Answers

crosshair scrip not working 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges