ShakeCamera
From Liberty Unleashed Wiki
This function shakes the camera of the given player.
Syntax
bool ShakeCamera( Player plr, int intensity )
Arguments
- plr - This is the pointer of the player to whose camera should be shaken
- intensity - The intensity of the shaking
Example
function onPlayerCommand( pPlayer, szCommand, szText ) { if ( szCommand == "shake" ) { ShakeCamera( pPlayer, 300 ); } return 1; }
Notes
The event onPlayerCommand was used in this example. More info about this in the corresponding page.