onPlayerEnterSphere

From Liberty Unleashed Wiki
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This event is called when a player enters a sphere.

Syntax

  1. function onPlayerEnterSphere( Player plr, Sphere sphere )

Arguments

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

Returns

This event does not handle return values.

Example

This example will remove the sphere after a player has entered it.

  1.  
  2. function onPlayerEnterSphere( player, sphere )
  3. {
  4. sphere.Remove();
  5. return 1;
  6. }
  7.  

Notes

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

Related Events

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox