Editing ThingKill

From Eternity Wiki
Jump to navigationJump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
This article used to be about a Small scripting feature. It got removed from Eternity so it is no longer available.
{{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 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===
''native'' '''_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===
*[[Small#Mapthings|Small mapthing functions]]
*[[_ThingHurt]]
*[[_ThingMassacre]]
Please note that all contributions to Eternity Wiki are considered to be released under the GNU Free Documentation License 1.2 (see Eternity Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)