- Home /
Question by
Orion31 · Apr 28, 2017 at 05:42 AM ·
javascriptmouselooksensitivityaimdownsights
Changing Mouse Sensitivity while Aiming down sights (Javascript)
Hi! I am an absolute beginner. I am currently making an aim down sights script with javascript, and when aiming I want the sensitivity for both x and y to drop to 2. I tried using
GetComponent.<UnityStandardAssets.Characters.FirstPerson.MouseLook>().sensitivityX = 2;
but that doesn't work. Does anyone know how to access the reference the Mouse Look dropdown in FPSController so I can change sensitivity? Thanks!
Comment
Best Answer
Answer by Orion31 · Apr 30, 2017 at 10:19 AM
I asked the same question on StackOverflow, and it got answered faster: http://stackoverflow.com/questions/43623712/changing-firstpersoncontroller-mouselook-sensitivity
Your answer
