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 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.
|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 contibutions are greatly appreciated.|