Squirrel/Server/Functions/Checkpoints/ID
From Liberty Unleashed Wiki
(Difference between revisions)
m (Fixed a bug) |
m |
||
Line 24: | Line 24: | ||
=== Notes === | === Notes === | ||
− | The function [[Squirrel/Server/Functions/Messages/MessagePlayer|MessagePlayer]] and event [[Squirrel/Server/Events/Marker/onPlayerEnterCheckpoint|onPlayerEnterCheckpoint]] were used | + | The function [[Squirrel/Server/Functions/Messages/MessagePlayer|MessagePlayer]] and event [[Squirrel/Server/Events/Marker/onPlayerEnterCheckpoint|onPlayerEnterCheckpoint]] were used in this example. More info about them in the corresponding pages. |
== Related Functions == | == Related Functions == | ||
{{Squirrel/Server/Functions/Checkpoints}} | {{Squirrel/Server/Functions/Checkpoints}} |
Latest revision as of 19:55, 24 September 2010
This Checkpoint class member returns the ID of the checkpoint.
[edit] Syntax
int Checkpoint.ID
[edit] Arguments
- none
[edit] Example
This example will message the player with the current ID of the checkpoint.
function onPlayerEnterCheckpoint( player, checkpoint ) { MessagePlayer( "The current id of this checkpoint is: " + checkpoint.ID, player ); return 1; }
[edit] Notes
The function MessagePlayer and event onPlayerEnterCheckpoint were used in this example. More info about them in the corresponding pages.