ShakeCamera

From Liberty Unleashed Wiki
Revision as of 18:00, 18 October 2010 by Force (Talk | contribs)

Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This function shakes the camera of the given player.

Syntax

  1. bool ShakeCamera( float intensity )

Arguments

  • intensity - The intensity of the shaking

Example

This will shake the players camera when they type /shake

  1.  
  2. function onClientCommand( szCommand, szText )
  3. {
  4. if ( szCommand == "shake" )
  5. {
  6. ShakeCamera( 5.00 );
  7. }
  8. return 1;
  9. }
  10.  

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

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox