onPlayerExitSphere

From Liberty Unleashed Wiki
Revision as of 12:42, 11 November 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 event is called when a player exits a sphere.

Syntax

  1. function onPlayerExitSphere( Player plr, Sphere sphere )

Arguments

  • plr - The player who left the sphere
  • sphere - The sphere which the player left

Returns

This event does not handle return values.

Example

This example will message the player who left a sphere.

  1.  
  2. function onPlayerExitSphere( player, sphere )
  3. {
  4. MessagePlayer( "You have left a sphere.", player );
  5. return 1;
  6. }
  7.  

Notes

The function MessagePlayer was used in this example. More info about this in the corresponding page.

Related Events

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox