This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| 4rpl:commands:getunitupdatecount [2019/04/04 22:37] – external edit 127.0.0.1 | 4rpl:commands:getunitupdatecount [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ~~NOTOC~~ | ~~NOTOC~~ | ||
| + | < | ||
| - | ====== | + | ====== |
| GetUnitUpdateCount | GetUnitUpdateCount | ||
| ===== Description ===== | ===== Description ===== | ||
| - | 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 at 30 fps. | + | Ideally, it increases at 30 UPS((updates per second)).\\ |
| + | When used in the console or a global script, | ||
| + | |||
| + | Also refer to [[GetGameUpdateCount]] and [[GetGameTickCount]] for additional timer-based commands. | ||
| ===== Examples ===== | ===== Examples ===== | ||
| Line 13: | Line 17: | ||
| trace(GetUnitUpdateCount) | trace(GetUnitUpdateCount) | ||
| </ | </ | ||
| + | < | ||