disable enable the mouse look rotating !?

hi,

Am using the mouselook to controll my caracter, when this last is in “Using” mode (my caracter using something) i want to stop camera from rotating with the mouse (freeze it ) , how to do that ?

(nothing works inside the mouselook script , i tried to use “static var” then call it inside the mouselook script, no way :s !! )

Thanks !!

Noone seems to know it , hihihi , i’ll find it and post the answer by my self :slight_smile:

Couldn’t you just do something like disabling the mouselook component when the player is using something?

using = true;
GetComponent().enabled = false;

then just enable it again when the character is not using.