ThingKill: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
(New page: {{DISPLAYTITLE:_ThingKill}} Kills all things whose TIDs match the provided TID. When ''dmgtype'' is '''_KILL_TELEFRAG''', things are hit for 10000 damage. '''_KILL_HEALTH''' simply damages...)
 
Line 13: Line 13:
*''_mods:mod'' : [[Means of death]] flag. This affects the obituary that is shown when the player dies, and may have other effects in the future such as elemental deaths. The default is usually acceptable when hurting things other than the player.
*''_mods:mod'' : [[Means of death]] flag. This affects the obituary that is shown when the player dies, and may have other effects in the future such as elemental deaths. The default is usually acceptable when hurting things other than the player.
===See also===
===See also===
*[[Small]]
*[[Small#Functions|Small functions]]

Revision as of 20:17, 24 December 2009

Kills all things whose TIDs match the provided TID. When dmgtype is _KILL_TELEFRAG, things are hit for 10000 damage. _KILL_HEALTH simply damages them for their current health value, guaranteeing a normal death.

If the game is not in level mode, it will trigger the exception: "Bad gamemode for native function".

Syntax

_ThingKill(tid, _killtypes:dmgtype = _KILL_HEALTH, _mods:mod = _MOD_UNKNOWN);

Parameters

  • tid : ID of the thing(s) to kill.
  • _killtypes:dmgtype : One of the following enumeration values:
_KILL_HEALTH
_KILL_TELEFRAG
  • _mods:mod : Means of death flag. This affects the obituary that is shown when the player dies, and may have other effects in the future such as elemental deaths. The default is usually acceptable when hurting things other than the player.

See also