This function toggles moving the camera with the mouse on or off.
- ToggleCameraMovement( bool toggle )
- toggle - A boolean value to set the camera movements by mouse on or off
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 );
The event onClientCommand was used in this example. More information is available on its corresponding page.