ShakeCamera
From Liberty Unleashed Wiki
This function shakes the camera of the client.
Syntax
bool ShakeCamera( int 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( 250 ); } return 1; }
Notes
The event onClientCommand was used in this example. More info about this in the corresponding page.
Related Functions
- FadeCamera
- RestoreCamera
- ShakeCamera
- SetCameraMatrix