ToggleCameraMovement
From Liberty Unleashed Wiki
This function toggles moving the camera with the mouse on or off.
Syntax
ToggleCameraMovement( bool toggle )
Arguments
- toggle - A boolean value to set the camera movements by mouse on or off
Example
This code will disallow the player from moving the camera when they use the command '/stopmoving'
function onClientCommand(cmd, text) { if(cmd == "stopmoving") { ToggleCameraMovement( false ); } }
Notes
The event onClientCommand was used in this example. More information is available on its corresponding page.
Related Functions
- BindKey
- GetKeyStatus
- IsMouseCursorShowing
- GetMouseCursorPos
- SetMouseCursorPos
- ShowMouseCursor
- ToggleCameraMovement
- UnbindKey