Squirrel/Client/Functions/Camera/ShakeCamera
From Liberty Unleashed Wiki
(Difference between revisions)
(→Example) |
(→Example) |
||
Line 29: | Line 29: | ||
The event [[Squirrel/Client/Events/Player/onClientCommand|onClientCommand]] was used in this example. More info about this in the corresponding page. | The event [[Squirrel/Client/Events/Player/onClientCommand|onClientCommand]] was used in this example. More info about this in the corresponding page. | ||
+ | This function currently shakes the camera continuously and won't stop. | ||
== Related Functions == | == Related Functions == | ||
{{Squirrel/Client/Functions/Camera}} | {{Squirrel/Client/Functions/Camera}} |
Revision as of 18:00, 18 October 2010
This function shakes the camera of the given player.
Syntax
bool ShakeCamera( float intensity )
Arguments
- intensity - The intensity of the shaking
Example
This will shake the players camera when they type /shake
function onClientCommand( szCommand, szText ) { if ( szCommand == "shake" ) { ShakeCamera( 5.00 ); } return 1; }
Notes
The event onClientCommand was used in this example. More info about this in the corresponding page. This function currently shakes the camera continuously and won't stop.
Related Functions
- FadeCamera
- RestoreCamera
- ShakeCamera
- SetCameraMatrix