Squirrel/Server/Events/Sphere/onPlayerExitSphere
From Liberty Unleashed Wiki
(Difference between revisions)
(Created page with '{{Squirrel/Title|onPlayerExitSphere}} This event is called when a player exits a sphere. == Syntax == <code>function onPlayerExitSphere( Player plr, Sphere sphere )</code> ===…') |
m |
||
Line 30: | Line 30: | ||
=== Notes === | === Notes === | ||
− | The function [[Squirrel/Server/Functions/Messages/MessagePlayer|MessagePlayer]] was used | + | The function [[Squirrel/Server/Functions/Messages/MessagePlayer|MessagePlayer]] was used in this example. More info about this in the corresponding page. |
== Related Events == | == Related Events == |
Latest revision as of 12:42, 11 November 2010
This event is called when a player exits a sphere.
[edit] Syntax
function onPlayerExitSphere( Player plr, Sphere sphere )
[edit] Arguments
- plr - The player who left the sphere
- sphere - The sphere which the player left
[edit] Returns
This event does not handle return values.
[edit] Example
This example will message the player who left a sphere.
function onPlayerExitSphere( player, sphere ) { MessagePlayer( "You have left a sphere.", player ); return 1; }
[edit] Notes
The function MessagePlayer was used in this example. More info about this in the corresponding page.
[edit] Related Events
- onPlayerEnterCheckpoint
- onPlayerExitCheckpoint
- onPlayerEnterSphere
- onPlayerExitSphere