This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
4rpl:commands:getunitupdatecount [2021/01/16 21:31] – [Description] Karsten75 | 4rpl:commands:getunitupdatecount [2023/08/21 13:13] (current) – Clarified this works for global scripts set to run while paused. Vertu | ||
---|---|---|---|
Line 6: | Line 6: | ||
===== 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 UPS((updates per second)). | + | Ideally, it increases at 30 UPS((updates per second)).\\ |
- | When used in the console, | + | When used in the console |
Also refer to [[GetGameUpdateCount]] and [[GetGameTickCount]] for additional timer-based commands. | Also refer to [[GetGameUpdateCount]] and [[GetGameTickCount]] for additional timer-based commands. |