Squirrel/Client/Functions/Camera/RestoreCamera
From Liberty Unleashed Wiki
(Difference between revisions)
(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
This function gives the player back control of the camera if changed by a function like SetCameraMatrix.
[edit] Syntax
void RestoreCamera()
[edit] Arguments
- none
[edit] Example
This will give the player control of the camera when they type '/restorecamera'.
function onClientCommand( szCommand, szText ) { if ( szCommand == "restorecamera" ) { RestoreCamera(); Message("Camera restored."); } return 1; }
[edit] Notes
The event onClientCommand was used in this example. More info about this in the corresponding page.
[edit] Related Functions
- FadeCamera
- RestoreCamera
- ShakeCamera
- SetCameraMatrix