A_Countdown
void A_Countdown ()
![]() |
Warning: this function should only be used with missile-type actors. Using it with other types is considered undefined behavior, and may result in unwanted side effects. |
Usage
Counts ReactionTime down until it reaches 0 and then destroys the calling actor.
Examples
This revenant missile follows the target until its animation has played 25 times, upon which it then explodes.
actor RevenantTracer2 : RevenantTracer { ReactionTime 25 States { Spawn: FATB AB 2 Bright A_Tracer FATB A 0 A_Countdown Loop } }
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.