Skip to content

Checkpoint

A checkpoint your gamemode put in the world with checkpoints.create, as checkpoints.listAll, checkpoints.getById, playerEnteredCheckpoint and playerLeftCheckpoint give it. It does not change; read it again for a newer one. Each player’s race checkpoint is a different thing.

type Checkpoint = Readonly<{
markerKind: "checkpoint"; id: number; position: Vector3; size: number; colorRgba: number; range: number; blip: boolean;
interior: number; virtualWorld: number; visible: boolean; players: readonly number[] | null;
}>;
type CheckpointSettings = MarkerTargeting & {
position: Vector3; size?: number; colorRgba?: number; range?: number; blip?: boolean;
};
Field Type Description
markerKind "checkpoint" Tells it apart from the other world markers.
id number Its ID.
position Vector3 Where it stands.
size number Its radius in metres. It counts 10 m up and down.
colorRgba number Its color, 0xRRGGBBAA, also of its blip.
range number How near a player must be to see it, in metres; 0 is the whole map.
blip boolean Whether it shows on the radar.
interior, virtualWorld, visible, players Who sees it and gets its events; see MarkerTargeting. players holds player IDs, or null for everyone.

CheckpointSettings has the same fields, all but position optional; the defaults are on checkpoints.create. Its old radius still works, with a warning: it is size now.