OnPlayerEnterCheckpoint
This event is triggered when a player enters a checkpoint.
C# Syntax
[ServerEvent(Event.PlayerEnterCheckpoint)]
Parameters
- checkpoint: parameter input should be in Checkpoint type
- player: parameter input should be in Player type
Example
[ServerEvent(Event.PlayerEnterCheckpoint)]
public void OnPlayerEnterCheckpoint(Checkpoint checkpoint, Player player)
{
player.SendChatMessage($"You entered checkpoint: {checkpoint.Id}.");
}