- Home /
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
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.
=)
i dont understand when it says "Set up an input button named Sights" please can you tell me?
go edit, project settings, input and add a button named sights then set the positive button to the key you want.
Answer by Jeston 1 · Jan 05, 2011 at 08:00 PM
There are 2 parts to iron sighting for me:
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.
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).
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'."
This is a related question, not an answer. Post a new question ins$$anonymous$$d.
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
Your answer
Follow this Question
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