OnPlayerEnterCheckpoint: Difference between revisions
(Created page with "This event is triggered when a player enters a checkpoint. {{CSharpContainer| {{#tag:syntaxhighlight| [ServerEvent(Event.PlayerEnterCheckpoint)] |lang=csharp }} {{Parameters...") |
No edit summary |
||
| Line 16: | Line 16: | ||
public void OnPlayerEnterCheckpoint(Checkpoint checkpoint, Client player) | public void OnPlayerEnterCheckpoint(Checkpoint checkpoint, Client player) | ||
{ | { | ||
player.SendChatMessage($"You entered checkpoint: { | player.SendChatMessage($"You entered checkpoint: {checkpoint.Id}."); | ||
} | } | ||
|lang=csharp}} | |lang=csharp}} | ||
Revision as of 01:06, 30 November 2019
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 Client type
Example
[ServerEvent(Event.PlayerEnterCheckpoint)]
public void OnPlayerEnterCheckpoint(Checkpoint checkpoint, Client player)
{
player.SendChatMessage($"You entered checkpoint: {checkpoint.Id}.");
}