This article's documentation is for anything that uses the Source engine. Click here for more information.

ent_remove_all

From Valve Developer Community
Jump to: navigation, search

ent_remove_all is a console command available in all Source Source games. This is used to remove all entities of specific classname or targetname from the current map. Syntax: ent_remove_all [<targetname>/<classname>]

Usage

  • ent_remove_all npc_zombie
    • Remove all npc_zombie entities from the current map
  • ent_remove_all citizen_passerby
    • Remove all entities with targetname citizen_passerby from the map. If only npc_citizen entities have this targetname, npc_citizen entities with other targetnames will not be removed.

See also