Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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
0
Question by King_Hermy · Jul 13, 2012 at 12:18 AM · animationgunzoomscope

Could anyone help me with this weapon script?

I'm sorry if what i am about to say sounds demanding...

I want these functions for my guns:

..Right click to view in aim/scope/Iron sights mode

..Able to zoom in (without having aimed in like above),e.g instead of pressing,holding down RMB will show me a closer view without the gun having to move.

..Able to perform sprint animation (left...right...left right...running) with slight camera bobbing

..Weapon does not pass through wall (Yes,mesh collider did not help)

Thank you for your time if you will help me with this and how i could go about applying it to the game.

I don't have coders on my game,in fact.It's just me and my friends as highly possible voice actors. So i don't know code,but hey,i learn from experience.Thanks

Comment
Add comment · Show 1
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 robeth · Jul 13, 2012 at 03:07 AM 0
Share

imo, the scripts and functionalies you need have intermediate to hard difficulty..

i suggest you to see introduction tutorial about controlling camera, animation, & rigid body. After you understand how those things work, i think it would be easier for you.

this link will give a good snapshot & example about that: http://walkerboystudio.com/html/unity_training___free__.html

hope it helps :)

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by blackmethod · Jul 13, 2012 at 06:48 AM

For #1 you're gonna probably want to set up a bone system that also attaches to your gun object, just look up bone systems unity and you should get a good idea.

2 Same diff, not clear enough anyhow

3 Make it so the character itself bobs with the camera attached to it

4 Good luck, commercial fps games don't do that.

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 King_Hermy · Jul 13, 2012 at 11:53 AM 0
Share

Lol at number 4 :/ .I believe i have seen those bone systems.Thanks.I'll definetly look them up :/

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.

Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

FPS sniper zoom effect without black texture? 3 Answers

FPS Aim Down Sights. Exact Position. 1 Answer

How do I make my script switch back to my regular animations 1 Answer

Help with making an animation play for X amount of seconds? 1 Answer

Unity does not recognize reload animation for gun 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