x


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

more ▼

asked Dec 05 '10 at 12:33 PM

hugemaggot gravatar image

hugemaggot
168 40 42 45

(comments are locked)
10|3000 characters needed characters left

4 answers: sort voted first

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'."

more ▼

answered Nov 17 '11 at 12:15 PM

J0hno gravatar image

J0hno
1

This is a related question, not an answer. Post a new question instead.

Nov 17 '11 at 12:16 PM CHPedersen
(comments are locked)
10|3000 characters needed characters left

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

more ▼

answered Nov 03 '12 at 08:30 AM

majordillow gravatar image

majordillow
1

(comments are locked)
10|3000 characters needed characters left

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

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

=)

more ▼

answered Dec 05 '10 at 03:19 PM

Justin Warner gravatar image

Justin Warner
6.3k 19 27 65

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

Dec 05 '10 at 05:10 PM hugemaggot

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

Dec 15 '10 at 08:03 AM doomprodigy
(comments are locked)
10|3000 characters needed characters left

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

more ▼

answered Jan 05 '11 at 08:00 PM

Jeston 1 gravatar image

Jeston 1
129 8 9 16

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

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

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3736
x1172
x446
x103

asked: Dec 05 '10 at 12:33 PM

Seen: 3529 times

Last Updated: Nov 03 '12 at 08:30 AM