Перейти к содержанию

OnPlayerEnterCheckpoint

Материал из RAGE MP Wiki Archive
Версия от 05:48, 9 мая 2023; imported>Xabi
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

This event is triggered when a player enters a checkpoint.


<syntaxhighlight lang="csharp"> [ServerEvent(Event.PlayerEnterCheckpoint)] </syntaxhighlight>

Parameters

  • checkpoint: parameter input should be in Checkpoint type
  • player: parameter input should be in Player type

Example

<syntaxhighlight lang="csharp"> [ServerEvent(Event.PlayerEnterCheckpoint)] public void OnPlayerEnterCheckpoint(Checkpoint checkpoint, Player player) { player.SendChatMessage($"You entered checkpoint: {checkpoint.Id}."); } </syntaxhighlight>