int GetActorPowerupTics (int tid, str powerup)
- tid: The TID of the actor to perform the check on.
- powerup: The class name of the powerup to get its remaining duration.
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 inherit from Powerup, the return value is 0. The function also returns 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.
|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. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated.|