From ZDoom Wiki
Jump to: navigation, search

int GetActorPowerupTics (int tid, str powerup);


Retrieves the remaining duration in tics of the specified active powerup for the actor with the matching tid. If tid is 0, the function is run on the activator of the script.


  • tid: The tid of the actor to perform the check on.
  • powerup: The class name of the powerup to get its remaining duration.

Return value

The function returns the number of tics remaining until the powerup's effect wears off. If the specified powerup class does not exist or it does not actually inherit from the Powerup class, the return value is 0. The function will also return 0 if there are no actors with a matching tid or the powerup does not currently exist in the actor's inventory, i.e. it is not currently active.


Nuvolachalk.png Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contibutions are greatly appreciated.