ShakeCamera

From Liberty Unleashed Wiki
Revision as of 19:50, 28 October 2010 by Juppi (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This function shakes the camera of the client.

Syntax

  1. bool ShakeCamera( int 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( 250 );
  7. }
  8. return 1;
  9. }
  10.  

Notes

The event onClientCommand was used in this example. More info about this in the corresponding page.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox