ZDoom Line Specials

133:Thing_Destroy

Name

Thing_Destroy — kills an actor

Synopsis

Thing_Destroy (tid, bExtreme);
Thing_Destroy (
  tid,       // Thing ID of the thing(s) to destroy
  bExtreme   // Whether or not a monster will experience an extreme death
);

Parameters

tid
All actors with this TID will be destroyed. If you specify 0 as the tid, then every monster on the map will be slain.
bExtreme
Set this to 0 if you want monsters to experience a normal death. Set this to 1 if you want monsters to experience an extreme ("gibbed") death.

ACS

This special's function is the same whether you activate it on a line or use it in a script.

Remarks

This specials kills monsters and anything else that takes damage (such as some of the trees in Hexen). If you just want to remove something from the map without making a spectacle of it, you can use Thing_Remove instead.

Example

Kill everything with the TID 66:

Thing_Destroy (66);

Gib everything with the TID 66:

Thing_Destroy (66, 1);

First Available In

Hexen
ZDoom 1.23 beta 26 added bDestroy

See Also

Thing_Remove