TM::PlayerInfo::get_Checkpoints Method

The Checkpoints property returns an array of states for each checkpoint that a player has to pass through to complete the map. This array always includes at least one item, even if the map has no checkpoints or finishes.

The finish line counts as a checkpoint, so a map with e.g one checkpoint and one finish line will have two items in this array.

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.

This array is not ordered, every checkpoint passing will change the next item in the array that is not set yet.

Syntax

array<TM::PlayerCheckpoint>@ TM::PlayerInfo::get_Checkpoints()

Return value

array<TM::PlayerCheckpoint>@

Remarks

The player finishes the race once every item in this array has Time set to a non-negative value. It is currently not possible to query what block a checkpoint belongs to.