TM::PlayerInfo::get_CheckpointStates Method
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. The length of this array is not necessarily the same as the number of physical checkpoints in the map. A 3 lap map with 1 checkpoint will have 6 entries in this array (1 checkpoint + 1 multilap block) x 3 laps.
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
The player finishes the race once all entries in this array are set to 1. 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.