A_Countdown
From ZDoom Wiki
A_Countdown
(no parameters)
This can only be used on projectiles. It counts reactiontime down until it reaches 0 and then explodes the projectile.
Examples
actor RevenantTracer2 : RevenantTracer
{
reactiontime 25
states
{
Spawn:
FATB AB 2 bright A_Tracer // See RevenantTracerSmoke
FATB A 0 A_CountDown
loop
Death:
FBXP A 8 bright
FBXP B 6 bright
FBXP C 4 bright
stop
}
}
This Revenant missile will follow the player until it's animation has played 25 times, which it will then enter it's death state.

