Scripting/Squirrel/Events/OnCheckpointEntered: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
PerikiyoXD (talk | contribs) (Created page with "This function is called whenever a player enters any checkpoint. == Syntax == <pre> function onCheckpointEntered( player, checkpoint ); </pre> == Arguments == *'''player''...") |
No edit summary |
||
Line 28: | Line 28: | ||
== Related Functions == | == Related Functions == | ||
{{Scripting/Squirrel/Events/Checkpoint_Events}} | {{Scripting/Squirrel/Events/Checkpoint_Events}} | ||
[[Category:Scripting/Squirrel/Events/Checkpoint_Events]] |
Latest revision as of 22:11, 30 January 2017
This function is called whenever a player enters any checkpoint.
Syntax
function onCheckpointEntered( player, checkpoint );
Arguments
- player - The player whom triggered the event.
- checkpoint - The checkpoint that triggers the event.
Example
This example shows a message whenever you enter a checkpoint.
function onCheckpointEntered( player, checkpoint )
{
MessagePlayer( "You have entered a checkpoint! ID: " + checkpoint.ID, player );
}
Notes
The functions MessagePlayer and Checkpoint.ID were used in this example. More info about them in corresponding pages.
Related Functions
- onCheckpointEntered(player, checkpoint)
- onCheckpointExited(player, checkpoint)