• 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
Question by Codex1770c · Mar 09, 2010 at 01:07 AM · fpsgunmovingshootwalking

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

Comment
Codex1770c
Alasdair
Not showing my name

People who like this

3 Show 0
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

8 Replies

  • Sort: 
avatar image

Answer by Epic · Jun 03, 2010 at 05:00 PM

http://dastardlybanana.com/FPSConstructorWeapons.htm
This si quite good

Comment
TaigaStudios
Jukka Alander
Linus

People who like this

3 Show 2 · 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 TaigaStudios · Jul 08, 2010 at 09:10 AM 0
Share

Dastardlybanana has amazing weapon tutorial. It completes many features weapons need

avatar image Linus · Jul 07, 2012 at 03:10 AM 0
Share

Getting their package will save you many hours of work. Their code is easy to understand and learn from

avatar image

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

Comment
Codex1770c
Alasdair

People who like this

2 Show 0 · 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

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!!!

Comment
Alasdair

People who like this

1 Show 0 · 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

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.

Comment

People who like this

0 Show 0 · 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

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!

Comment

People who like this

0 Show 0 · 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
  • 1
  • 2
  • ›

Unity Answers is in Read-Only mode

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta on June 13. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.

For more information and updates, please read our full announcement thread in the Unity Forum.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

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

How to position a gun on a FPS Charater 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