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
http://www.unifycommunity.com/wiki/index.php?title=AimDownSights
Their's the scripts, just follow the instructions, it works pretty well.
=)
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).
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’.”
hey ummm how do i get it to when i sight down my gun its a little lower becase the gun is too high