From Arx Libertatis Wiki
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. starttimer can be called again (without stoptimer) to reset the stopwatch's start time.

To run a script command after a specific time use the timer command.


starttimer <stopwatch>

Context: Any Entity


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