Npc destroy: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created.)
 
m (Cleanup.)
Line 15: Line 15:
==See also==
==See also==


General AI
*[[npc_select]], [[npc_destroy_unselected]]
*[[npc_select]], [[npc_destroy_unselected]]



Revision as of 23:50, 8 July 2005

Template:Wrongtitle

The npc_destroy console command is a debugging tool that destroys NPCs. Destroyed NPCs are silently removed, so outputs such as "OnDamaged" and "OnDeath" are not fired, nor are ragdolls created. Destroyed NPCs carrying weapons will drop the weapon before removing themselves.


Usage

  • npc_destroy
    • This will destroy the NPC under your crosshair, if any.
  • npc_destroy <entity index>
    • This will destroy the NPC matching the specified entity index, if any.
  • npc_destroy <name>
    • This will destroy all NPCs who's classname matches the specified name, or who's targetname matches the specified name.


See also