ToggleCameraMovement

From Liberty Unleashed Wiki
Revision as of 22:55, 2 August 2011 by Stormeus (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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