Kill: Difference between revisions
Jump to navigation
Jump to search
Code:To kill entities via code use UTIL_Remove. This will kill the entity on the subsequent tick.
To kill entities via VScript use Destroy() or Kill() to kill the entity on the subsequent tick
m (Don't confuse this with the "kill" cmd which makes your character in-game take their own life.) |
SirYodaJedi (talk | contribs) No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{TabsBar}} | {{TabsBar}} | ||
{{stub}}{{ | {{stub}} | ||
{{ | {{for|the identically-named console command|[[kill (console command)]]}} | ||
{{This is a|input|engine=Source|name=Kill}} It removes the named entity from play, and deletes its associated [[edict]]. | |||
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. | 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. | ||
Latest revision as of 08:11, 22 April 2025
For the identically-named console command, see kill (console command).
Kill
is an input available in all Source games. It removes the named entity from play, and deletes its associated edict.
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.

To kill entities via VScript use Destroy() or Kill() to kill the entity on the subsequent tick