Thing_Damage

From ZDoom Wiki

Jump to: navigation, search
  • Thing_Damage(tid, amount, MOD)


Damages the specified actor.

TID: TID of the thing you want to damage.
Amount: The amount of Damage the Thing will receive.
MOD: The obituary message that will appear if a player is killed:
       0  = MOD_UNKNOWN 
       12 = MOD_WATER 
       13 = MOD_SLIME 
       14 = MOD_LAVA 
       15 = MOD_CRUSH 
       16 = MOD_TELEFRAG 
       17 = MOD_FALLING 
       18 = MOD_SUICIDE 
       19 = MOD_BARREL 
       20 = MOD_EXIT 
       21 = MOD_SPLASH 
       22 = MOD_HIT 

Similar to DamageThing but it hurts actors by TID rather than whoever activates it. Note that if TID is 0, this behaves exactly as DamageThing.

There are some newer built-in damage types for which no MOD code exists and custom damage types are identified by names; neither can be used with this special. If you want to attach this special outside a script (e.g., to a line or a thing) but need to use a damage type that is recognized by the game by name, but is not listed above, set the line/thing special to run a script instead and use the Thing_Damage2 ACS function in the script.

Personal tools