disable enable the mouse look component ?!

hi,

How to disable enable the mouse look component via scripts ?!

thanks.

i create a parent to my caracter than contain a X only mouseLook .

then when i select the Arch and press fire1 : i go to shooting mode ( 1st Person ) so i needed XandY

so i found it after 3 houre of searshing since no1 helped me :s

getComponent(MouseLook) is the sollution , so i can change its varriable like switch from XandY to X or Y … an so on

Thanks Crazyosachou for ur help :wink:

No problem Dude, Good Luck.

you too.