This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
4rpl:commands:getgametickcount [2019/04/04 22:37] – external edit 127.0.0.1 | 4rpl:commands:getgametickcount [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
~~NOTOC~~ | ~~NOTOC~~ | ||
+ | < | ||
- | ====== | + | ====== |
GetGameTickCount | GetGameTickCount | ||
Line 7: | Line 8: | ||
Pushes the game's tick count to the stack. The tick count is similar to the game update count, except it always increments even when the game is paused. | Pushes the game's tick count to the stack. The tick count is similar to the game update count, except it always increments even when the game is paused. | ||
It only ever goes up through a mission. Ideally, it increases at 30 fps. | It only ever goes up through a mission. Ideally, it increases at 30 fps. | ||
+ | |||
+ | Also refer to [[GetGameUpdateCount]] and [[GetUnitUpdateCount]] for additional timer-based commands. | ||
===== Examples ===== | ===== Examples ===== | ||
Line 12: | Line 15: | ||
trace(GetGameTickCount) | trace(GetGameTickCount) | ||
</ | </ | ||
+ | < | ||