Npc destroy: Difference between revisions
Jump to navigation
Jump to search
TomEdwards (talk | contribs) mNo edit summary |
(→Usage) |
||
Line 12: | Line 12: | ||
* <code>npc_destroy <name></code> | * <code>npc_destroy <name></code> | ||
** This will destroy all NPCs who's classname matches the specified name, or who's targetname matches the specified name. | ** This will destroy all NPCs who's classname matches the specified name, or who's targetname matches the specified name. | ||
* <code>like a brown splob</code> | |||
**Like a brow splobbable splob | |||
==See also== | ==See also== |
Revision as of 02:47, 15 August 2005
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.
This command flags the NPC with a note to destroy itself, so if AI is not running (due to the ai_disable command), the command will be ignored.
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.
like a brown splob
- Like a brow splobbable splob