TM::PlayerInfo::get_CheckpointStates Method

The CheckpointStates property returns an array of states for each physical checkpoint that a player has to pass through to complete the map or a single lap.

Unlike the Checkpoints property, this API returns an array of boolean values (but with size of a 32-bit integer) which represent how many checkpoints the player has already passed.

If a map consists of one checkpoint and one multilap block, the array will have two items. This list has a consistent ordering of checkpoints across restarts.

Syntax

array<int>@ TM::PlayerInfo::get_CheckpointStates()

Return value

array<int>@
The states of checkpoints. Each entry is either 0 (not yet passed) or 1 (passed).

Remarks

If you wish to alter the states from a plugin, you must do so through the OnCheckpointCountChanged callback which is specifically placed in the game loop to allow for this modification.