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 hugemaggot · Dec 05, 2010 at 12:33 PM · fpsgunaim

Aiming down a gun

ve been working on an fps game in unity for a while now and are almost finished but im not sure how to create scopes and be able to look down them if anyone noes please can you help me

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
0

Answer by Justin Warner · Dec 05, 2010 at 03:19 PM

http://www.unifycommunity.com/wiki/index.php?title=AimDownSights

Their's the scripts, just follow the instructions, it works pretty well.

=)

Comment
Add comment · 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 hugemaggot · Dec 05, 2010 at 05:10 PM 0
Share

i dont understand when it says "Set up an input button named Sights" please can you tell me?

avatar image doomprodigy · Dec 15, 2010 at 08:03 AM 0
Share

go edit, project settings, input and add a button named sights then set the positive button to the key you want.

avatar image
0

Answer by Jeston 1 · Jan 05, 2011 at 08:00 PM

There are 2 parts to iron sighting for me:

  1. Aligning the gun relative to the camera You can do this a multitude of ways, make & play an animation pulling gun to the eye point correctly or recording the position of the gun and lerping from your aim position -> shouldered position.

  2. Animating the field of view of a camera The script mentioned by Justin will work fine, though in most cases I think it looks better if the field of view for the weapon differs (~20-30) from the FOV for the world (~40).

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 J0hno · Nov 17, 2011 at 12:15 PM

I know NOTHING of scripting, its my first day of Unity and im trying to make an FPS.

I did the above, but i dont know how to "add a button" to my input menu. and it says "Assets/WeaponScripts/Ironsights.js(25,22): BCE0005: Unknown identifier: 'FPSWalker'."

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 CHPedersen · Nov 17, 2011 at 12:16 PM 0
Share

This is a related question, not an answer. Post a new question ins$$anonymous$$d.

avatar image
0

Answer by majordillow · Nov 03, 2012 at 08:30 AM

hey ummm how do i get it to when i sight down my gun its a little lower becase the gun is too high

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.

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

aim script error 1 Answer

Zombie FPS 2 Answers

FPS Aim Down Sights. Exact Position. 1 Answer

A node in a childnode? 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