PlayerEnterCheckpoint: Difference between revisions

From RAGE Multiplayer Wiki
mNo edit summary
No edit summary
Line 2: Line 2:


==Parameters==
==Parameters==
* '''player'''
* '''checkpoint'''
* '''checkpoint'''


==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
mp.events.add("playerEnterCheckpoint", (player, checkpoint) => {
mp.events.add("playerEnterCheckpoint", (checkpoint) => {
  // To what you want.
  // To what you want.
});
});
</syntaxhighlight>
</syntaxhighlight>

Revision as of 17:23, 20 April 2018

Event triggered when a player enters into a checkpoint

Parameters

  • checkpoint

Example

mp.events.add("playerEnterCheckpoint", (checkpoint) => {
 // To what you want.
});