Killtarget: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Kill input does kill children, just not on the same tick)
mNo edit summary
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 killed in the same [[tick]] by sending the {{code|KillHierarchy}} input instead, otherwise they will be killed on a subsequent tick.
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 [[Source_Multiplayer_Networking#Basic_networking|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 00:03, 25 June 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.