Kill: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Redirected page to Killtarget)
Tag: New redirect
 
(split)
Tag: Removed redirect
Line 1: Line 1:
#REDIRECT [[Killtarget]]
{{TabsBar}}
{{useful redirect}}
{{stub}}
It's an input that 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.
 
{{Codenote|To kill entities via code use {{ent|UTIL_Remove}}. This will kill the entity on the subsequent tick.}}
 
[[Category:Glossary]]

Revision as of 11:46, 17 March 2025

Source Engine ( input | console command )
edit

Stub

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

It's an input that 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.

Cpp.pngCode:To kill entities via code use UTIL_Remove. This will kill the entity on the subsequent tick.