Editor mouse control in-game
by Caleb · in Technical Issues · 04/21/2007 (1:00 pm) · 1 replies
Can someone please tell me were the Mission Editor gets its mouse stuff? While the editor is open, the mouse is visible until you click, then it controls the camera. I want it to be like this in reverse while playing the game.
While in game, I want to be able to look around like normal, but when the mouse is clicked, I want the cursor to become visible and then go away again when I let go.
I looked through all the scripts and could not find were the editor handles the cursor control when the mouse is clicked. Please help me, this is really important.
Thanks.
While in game, I want to be able to look around like normal, but when the mouse is clicked, I want the cursor to become visible and then go away again when I let go.
I looked through all the scripts and could not find were the editor handles the cursor control when the mouse is clicked. Please help me, this is really important.
Thanks.
Torque Owner Caleb
Default Studio Name
function mouseFire(%val) { $mvTriggerCount0++; if ($mvTriggerCount0 == 1 && !Canvas.isCursorOn()) cursorOn(); else { $mvTriggerCount0 = 0; cursorOff(); } }It does pretty much what I was trying to do.