onCheckpointEntered
Description
This function is called whenever a player enters any checkpoint.
| Name | Description |
|---|---|
| player | The player whom triggered the event. |
| checkpoint | The ID of the player that streamed the actor in. |
Example
This example shows a message whenever you enter a checkpoint.
function onPlayerCheckpointEntered(player, checkpoint) { MessagePlayer("You have entered a checkpoint! ID: " + checkpoint.ID, player); }