Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

readMatchElapsedSeconds

readMatchElapsedSeconds(source, match): number

Simulated seconds match has played at the source’s tick: the steps from its start to its end, or before the tick the source stands on; 0 before it plays or where it holds no match. Derived from the ticks its trait keeps, so a clock that reads it each step moves with nothing written. A HUD reads the same seconds from useMatch.

Parameter Type
source TickSource
match MatchEntity

number