MouseLook On and Off

Hi

I’m having some trouble with the MouseLook script…The script itself works beautifully but is there any way to turn it on and off. I want to be able to say hit the m key…then mouselook stops…my cursor become vissible… so I can interact with my menu…Then when I exit menu…MouseLook works again! Sure there must be a way to do this…tried a few different ways (Not Python…I know to little) but no luck yet…ANY SUGGESTIONS…any help appreciated!

Thanx!

state change

Thanx cyborg_ar!

First time using states…got it working…one last Q?..Once I have used the"import Rasterizer
Rasterizer.showMouse(1)"…How do I Hide the mouse again…tried using"hideMouse"…but not working…sorry just hacking my way with this python!!

use

Rasterizer.showMouse(0)

LMAO

Thanx again!!! Working exactly as I want…Do apreciate the help!!
Cheers cyborg_ar!