This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
4rpl:commands:getunitupdatecount [2019/04/05 00:41] – added cross-reference to other timers Karsten75 | 4rpl:commands:getunitupdatecount [2021/01/16 21:31] – [Description] Karsten75 | ||
---|---|---|---|
Line 1: | Line 1: | ||
~~NOTOC~~ | ~~NOTOC~~ | ||
+ | < | ||
- | ====== | + | ====== |
GetUnitUpdateCount | GetUnitUpdateCount | ||
Line 7: | Line 8: | ||
Pushes the unit's update count to the stack. The update count for a unit starts at 0 when the unit is first created. It is incremented once for each frame that the game executes. | Pushes the unit's update count to the stack. The update count for a unit starts at 0 when the unit is first created. It is incremented once for each frame that the game executes. | ||
It does not increment when the game is paused. It only ever goes up through a mission. | It does not increment when the game is paused. It only ever goes up through a mission. | ||
- | Ideally, it increases 30 times per second. | + | Ideally, it increases |
+ | When used in the console, | ||
- | Also refer to [[getgameupdatecount | + | Also refer to [[GetGameUpdateCount]] and [[GetGameTickCount]] for additional timer-based commands. |
===== Examples ===== | ===== Examples ===== | ||
Line 15: | Line 17: | ||
trace(GetUnitUpdateCount) | trace(GetUnitUpdateCount) | ||
</ | </ | ||
+ | < | ||