A_Detonate

From ZDoom Wiki
Jump to: navigation, search

A_Detonate

(no parameters)


Performs an explosive (radius) attack. The amount of damage and the attack's radius are specified with the actor's Damage property.

Examples

This is a gamma demon. It releases a wave of damaging radiation when it dies. When killed, its death state triggers A_Detonate, which according to its Damage property, releases a wave of radius damage within 100 units, dealing 100 damage at the center of the blast.

ACTOR GammaDemon : Demon
{
  Damage 100
  States
  {
  Death:
    SARG I 8
    SARG J 8 A_Scream
    SARG K 4 A_Detonate
    SARG L 4 A_NoBlocking
    SARG M 4
    SARG N -1
    Stop
  }
}