User Tools

Site Tools


4rpl:commands:getunitupdatecount

This is an old revision of the document!


Index

GetUnitUpdateCount

GetUnitUpdateCount

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. It does not increment when the game is paused. It only ever goes up through a mission. Ideally, it increases at 30 UPS1). When used in the console, GetUnitUpdateCount will also work. It will start at 0 when you first run the script in the console.

Also refer to GetGameUpdateCount and GetGameTickCount for additional timer-based commands.

Examples

trace(GetUnitUpdateCount)

Index

1)
updates per second
4rpl/commands/getunitupdatecount.1610850698.txt.gz · Last modified: 2021/01/16 21:31 by Karsten75