Game Development Community

Mouse look not working after exiting ME

by Cameronh · in Technical Issues · 03/30/2008 (1:35 pm) · 4 replies

Well, usually i could edit my maps then press f11 to close the mission editor and still be able to move my view by holding down the right mouse button and dragging the mouse. Weirdly out of no where it is unabling me to do so. I can only move the view with my mouse when the mission editor is open. Anyone know how to fix this?

Thanks for your time
-Cameron

About the author

Recent Threads


#1
03/30/2008 (2:32 pm)
Something similar thats happened to me is that I'll close the mission editor and I'm no longer able to move. I can look around but not move. Just simply hit the tilde key and bring up the console and one more time to make the console go away and everything works fine then. That may help you, I hope.
#2
03/30/2008 (2:59 pm)
I even restart the game and no hope :(
#3
03/30/2008 (3:43 pm)
To get the normal in-game behavior of moving the view with the mouse, it is required that you have the noCursor field set to 1 (true). The GUI editor resets this (because you are operating it in the other mode while editing). You need to set it manually for those few screens that require it.

The easiest way to do this so that it never bothers you again is to put an additional setting after the
//--- OBJECT WRITE END ---
line at the end of the Gui definition. (The editor will not change values after this marker.)

This is after all the gui controls are defined in Playgui.gui:

};
//--- OBJECT WRITE END ---
PlayGui.noCursor="1";

with this extra line, even if the noCursor line far above in the gui definition is reset by the editor, this one will be executed and override it.

To confirm this when the problem occurs, you can also open the console and type the nocursor setting manually in the console:
PlayGui.noCursor="1";
#4
03/30/2008 (5:03 pm)
Thanks! works perfectly