Ent remove: Difference between revisions
Jump to navigation
Jump to search
Bug:If specified entity index does not exist in the map, this command will instead remove worldspawn causing a crash. [todo tested in ?]
Gameplayer (talk | contribs) (Created page with "{{this is a|console command|name=ent_remove}} This is used to remove entities from the game. Syntax: {{code|ent_remove [optional <targetname>/<classname>]}} == Usage =...") |
Gameplayer (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{this is a|console command|name=ent_remove}} This is used to remove entities from the game. Syntax: {{code|ent_remove [optional <[[targetname]]>/<[[classname]]>]}} | {{this is a|console command|name=ent_remove}} This is used to remove entities from the game. Syntax: {{code|ent_remove [optional <[[targetname]]>/<[[classname]]>/<[[entity index]]>]}} | ||
{{bug|If specified entity index does not exist in the map, this command will instead remove [[worldspawn]] causing a crash.}} | |||
== Usage == | == Usage == | ||
* {{code|ent_remove}} | * {{code|ent_remove}} |
Latest revision as of 04:56, 9 September 2024
ent_remove
is a console command available in all Source games. This is used to remove entities from the game. Syntax: ent_remove [optional <targetname>/<classname>/<entity index>]

Usage
- ent_remove
- Remove entity the player is looking at right now
- ent_remove npc_metropolice
- Remove only one npc_metropolice from a map
- ent_remove cupcop
- Remove entity with targetname cupcop from the map