starttimer

From Arx Libertatis Wiki
Revision as of 00:34, 17 April 2020 by Ds (talk | contribs) (Created page with "{{ScriptCommandPage |description=start a stopwatch |context=any |parameters= stopwatch string The stopwatch to start - one of <code>timer1</code>, <code>timer2</code>, <code>t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The starttimer script command is used to start a stopwatch for an entity. Once started a the number of milliseconds of simulation time elapsed since the starttimer call can be retrieved using the ^#timer1, ^#timer2, ^#timer3 and ^#timer4 system variables respectively. Timers can be stopped again using stoptimer. Stopped timers will always return a value of 0 elapsed milliseconds.

Usage

starttimer <stopwatch>

Context: Any Entity

Parameters:

ParameterTypeDescription
stopwatch string The stopwatch to start - one of timer1, timer2, timer1 or timer4