Kill

From Valve Developer Community
Revision as of 16:42, 17 March 2025 by Nescius (talk | contribs) (Both use UTIL_Remove to remove the entity. Kill just additionally clears the entity's owner and l4d2 doesn't have Destroy)
Jump to navigation Jump to search
Source Engine ( input | console command )
edit

Stub

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

Kill is 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.
To kill entities via VScript use Destroy() or Kill() to kill the entity on the subsequent tick

See also