User Tools

Site Tools


4rpl:commands:getunitupdatecount

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
4rpl:commands:getunitupdatecount [2021/01/17 02:31] – [Description] Karsten754rpl:commands:getunitupdatecount [2025/02/14 14:57] (current) – external edit 127.0.0.1
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,  GetUnitUpdateCount will also work. It will start at 0 when you first run the script in the console.+When used in the console or a global script,  GetUnitUpdateCount will also work. It will start at 0 when you first run the script in the console or conduct a recompile. If the script is set to run while paused, GetUnitUpdateCount will increment even with the game paused.
  
  Also refer to [[GetGameUpdateCount]] and [[GetGameTickCount]] for additional timer-based commands.  Also refer to [[GetGameUpdateCount]] and [[GetGameTickCount]] for additional timer-based commands.
4rpl/commands/getunitupdatecount.1610850698.txt.gz · Last modified: 2025/02/14 14:56 (external edit)