Thing_Destroy

From ZDoom Wiki
Jump to: navigation, search

133:Thing_Destroy (tid, extreme, tag)

  • tid: Thing ID of the thing to destroy
  • extreme: Inflicts extreme damage (gib death)
  • tag: Only affects things in tagged sectors

Kills the specified thing. If you have a TID of 0, then it will kill all the monsters on the map, similar to the “kill monsters” cheat. If extreme is 1, the thing enters its extreme (gib) death sequence if it exists. If tag is not zero, the special will only kill monsters in the tagged sectors.

Note that this function does not properly handle killing players with armor or more than 100% health if extreme is 0.

Examples

Nuvolachalk.png Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contibutions are greatly appreciated.


External links