RestoreCamera

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

This function restores the camera for the given player.

Syntax

  1. bool RestoreCamera( Player plr )

Arguments

  • plr - This is the pointer of the player to whom the camera will be restored

Example

This example command restores player's camera to original status when they type '/restorecamera'.

  1.  
  2. function onPlayerCommand( player, command, text )
  3. {
  4. if ( command == "restorecamera" )
  5. {
  6. RestoreCamera( player );
  7. MessagePlayer( "Your camera has been restored.", player );
  8. }
  9. return 1;
  10. }
  11.  

Notes

The function MessagePlayer and event onPlayerCommand were used in this example. More info about them in the corresponding pages.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox