ToggleCameraMovement

From Liberty Unleashed Wiki
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This function toggles moving the camera with the mouse on or off.

Syntax

  1. 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'

  1.  
  2. function onClientCommand(cmd, text)
  3. {
  4. if(cmd == "stopmoving")
  5. {
  6. ToggleCameraMovement( false );
  7. }
  8. }
  9.  

Notes

The event onClientCommand was used in this example. More information is available on its corresponding page.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox