Squirrel/Server/Functions/Camera/RestoreCamera
From Liberty Unleashed Wiki
(Difference between revisions)
(→Example) |
(→Example) |
||
Line 12: | Line 12: | ||
== Example == | == Example == | ||
− | |||
function onPlayerCommand( player, command, text ) | function onPlayerCommand( player, command, text ) | ||
{ | { |
Revision as of 02:08, 7 January 2010
This function restores the camera for the given player.
Syntax
bool RestoreCamera( Player plr )
Arguments
- plr - This is the pointer of the player to whom the camera will be restored
Example
function onPlayerCommand( player, command, text ) { if ( command == "restorecamera" ) RestoreCamera( player ); } </code>
Notes
The RestoreCamera function is used to restore the players camera if it has been moved around.
Related Functions
- FadeCamera
- GetCinematicBorder
- RestoreCamera
- ShakeCamera
- SetCameraMatrix
- SetCinematicBorder