playerLeftCheckpoint
Tells your gamemode that a player went out of one of your checkpoints, died in
it, or it stopped being for them (hidden, or moved to another interior or virtual world). None comes when the checkpoint
is destroyed or the player leaves the server: listen to
scriptMarkerDestroyed and
playerDisconnected for those.
Renamed in 0.28 from checkpointLeave; see renamed names.
Signature
Section titled “Signature”server.on("playerLeftCheckpoint", ({ player, checkpoint }) => void)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
player |
PlayerSnapshot |
The player. |
checkpoint |
Checkpoint |
The checkpoint, from checkpoints.create. |
Example
Section titled “Example”import { screen, server } from "nativemp";
server.on("playerLeftCheckpoint", ({ player }) => { screen.showGameText("~r~Come back!", { player, durationMs: 1000, style: 3 });});Related
Section titled “Related”playerEnteredCheckpoint: they came inPlayerCheckpointPayload- World markers: when the events come