Squirrel/Client/Functions/Camera/RestoreCamera

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with '{{Squirrel/Title|RestoreCamera}} This function gives the player back control of the camera if changed by a function like [[Squirrel/Client/Functions/Camera/SetCameraMatrix|SetCam…')
 

Latest revision as of 13:40, 31 July 2011

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.

[edit] Syntax

  1. void RestoreCamera()

[edit] Arguments

  • none

[edit] 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.  

[edit] Notes

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

[edit] Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox