Squirrel/Client/Events/Checkpoint/onClientExitCheckpoint
From Liberty Unleashed Wiki
(Difference between revisions)
(Created page with '{{Squirrel/Title|onClientExitCheckpoint}} This event is called when the local player exits a checkpoint == Syntax == <code>function onClientExitCheckpoint( checkpoint )</code> …') |
(Added example) |
||
Line 12: | Line 12: | ||
== Example == | == Example == | ||
− | + | This code messages the player telling them they left a checkpoint. | |
− | + | ||
<code lang="squirrel"> | <code lang="squirrel"> | ||
− | + | function onClientExitCheckpoint( checkpoint ) | |
+ | { | ||
+ | Message("You just left checkpoint " + checkpoint.ID); | ||
+ | } | ||
</code> | </code> | ||
=== Notes === | === Notes === | ||
− | + | The function [[Squirrel/Client/Functions/Messages/Message|Message]] was used in this example. More info in its corresponding page. | |
== Related Events == | == Related Events == |
Latest revision as of 02:37, 2 August 2011
This event is called when the local player exits a checkpoint
[edit] Syntax
function onClientExitCheckpoint( checkpoint )
[edit] Arguments
- checkpoint - The pointer of the checkpoint exited
[edit] Example
This code messages the player telling them they left a checkpoint.
function onClientExitCheckpoint( checkpoint ) { Message("You just left checkpoint " + checkpoint.ID); }
[edit] Notes
The function Message was used in this example. More info in its corresponding page.
[edit] Related Events
- onClientEnterCheckpoint
- onClientExitCheckpoint
- onClientEnterSphere
- onClientExitSphere