onPlayerFall

From Liberty Unleashed Wiki
Revision as of 17:25, 22 December 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 is called when a player gets knocked down by a weapon such as the shotgun.

Syntax

  1. function onPlayerFall( Player player )

Arguments

  • player - The pointer of the player who fell

Returns

This event does not handle return values.

Example

This will message the player who fell. (Such a useful example!)

  1.  
  2. function onPlayerFall( player, oldhp, newhp )
  3. {
  4. MessagePlayer( "You just fell! :o", player );
  5. return 1;
  6. }
  7.  

Notes

The function MessagePlayer was used in this example. More info about it can be found in the corresponding page.

Related Events

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox