Killtarget

From Valve Developer Community
(Redirected from Kill)
Jump to navigation Jump to search

Stub

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

Split-arrows.png Split

It has been suggested that this article or section be split into multiple articles: kill input and killtarget should be split. (Discuss)

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.

Cpp.pngCode:To kill entities via code:

These will kill the entity on the subsequent tick.