Killtarget: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{stub}} {{code|killtarget}} is a KV in many {{idtech2|2}} and {{goldsrc|2}} entities. It removes the named entity from play, and deletes its associated edict. This is...")
 
(Kill input does kill children, just not on the same tick)
Line 2: Line 2:
{{code|killtarget}} is a [[KV]] in many {{idtech2|2}} and {{goldsrc|2}} entities. It removes the named entity from play, and deletes its associated [[edict]]. This is known as "killtargeting".
{{code|killtarget}} is a [[KV]] in many {{idtech2|2}} and {{goldsrc|2}} entities. It removes the named entity from play, and deletes its associated [[edict]]. This is known as "killtargeting".


In {{src|2}}, entities are killtargeted by sending them the {{code|Kill}} [[I/O|input]]. An entity's [[children]] can be killtargeted alongside it by sending the {{code|KillHierarchy}} input instead.
In {{src|2}}, entities are killtargeted by sending them the {{code|Kill}} [[I/O|input]]. An entity's [[children]] can be killed in the same [[tick]] by sending the {{code|KillHierarchy}} input instead, otherwise they will be killed on a subsequent tick.


[[Category:Glossary]]
[[Category:Glossary]]
[[Category:GoldSrc Glossary]]
[[Category:GoldSrc Glossary]]

Revision as of 17:12, 15 May 2024

Stub

This article or section is a stub. You can help by expanding it.

killtarget is a KV in many id Tech 2 id Tech 2 and GoldSrc GoldSrc entities. It removes the named entity from play, and deletes its associated edict. This is known as "killtargeting".

In Source Source, entities are killtargeted by sending them the Kill input. An entity's children can be killed in the same tick by sending the KillHierarchy input instead, otherwise they will be killed on a subsequent tick.