RestoreCamera

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

This function gives the player back control of the camera if changed by a function like SetCameraMatrix.

Syntax

  1. void RestoreCamera()

Arguments

  • none

Example

This will give the player control of the camera when they type '/restorecamera'.

  1.  
  2. function onClientCommand( szCommand, szText )
  3. {
  4. if ( szCommand == "restorecamera" )
  5. {
  6. RestoreCamera();
  7. Message("Camera restored.");
  8. }
  9. return 1;
  10. }
  11.  

Notes

The event onClientCommand was used in this example. More info about this in the corresponding page.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox