A_Countdown

From ZDoom Wiki
Jump to: navigation, search

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 its animation has played 25 times, upon which it will then enter its death state.