PlayerEnterCheckpoint: Difference between revisions
mNo edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
==Parameters== | ==Parameters== | ||
* '''checkpoint''' | * '''checkpoint''' | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
mp.events.add("playerEnterCheckpoint", ( | 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.
});