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