addMatchLap
addMatchLap(
authority,match,options?):boolean
Credits a lap of match while it plays, as a lap line’s forward
crossing does: with { player }, a member’s lap and its time, which in
a co-op match with no queue is the match’s lap too; with no options,
the shared lap of a co-op match with no queue, such as an NPC’s kart’s.
For a game that counts laps by checkpoints of its own: it pays no lap a
lap line’s backward crossing owes. The lap counts toward laps on the
match’s next step, or on this one where the call runs before
matches.systems.advance, which a system anchors before so its last
lap and the clock are judged in one step. Returns whether it counted:
false outside Playing. A player who holds no slot in the match, or no
options where the laps are each racer’s own, throws in development and
logs and returns false in a deployed world.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
authority |
Authority |
match |
MatchEntity |
options? |
AddMatchLapOptions |
Returns
Section titled “Returns”boolean