ShakeCamera

From Liberty Unleashed Wiki
Revision as of 19:49, 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 given player.

Syntax

  1. 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

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

Notes

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

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox