Trigger remove: Difference between revisions
Jump to navigation
Jump to search
Warning:Removing some entities can cause instability.
m (→Outputs: Substituted IO templates) |
|||
(20 intermediate revisions by 12 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{CD|CTriggerRemove|file1=triggers.cpp}} | ||
{{ | {{this is a|brush entity|name=trigger_remove}} It is a [[trigger]] volume that removes any [[entity|entities]] that touch it. | ||
{{optim_brush}} | {{optim_brush}} | ||
Line 11: | Line 8: | ||
This is not the same as killing entities; i.e. NPCs removed in this manner will not fire their ''OnKilled'' outputs. | This is not the same as killing entities; i.e. NPCs removed in this manner will not fire their ''OnKilled'' outputs. | ||
{{code class|CTriggerRemove|triggers.cpp}} | |||
{{ | |||
==Keyvalues== | ==Keyvalues== | ||
{{KV Trigger}} | |||
{{KV Targetname}} | |||
==Flags== | ==Flags== | ||
{{Fl Trigger}} | |||
==Inputs== | ==Inputs== | ||
{{I EnableDisable}} | |||
==Outputs== | ==Outputs== | ||
{{O|OnRemove|Fired whenever an entity is removed.}} | |||
Latest revision as of 21:47, 19 April 2025
![]() |
---|
CTriggerRemove |
![]() |
trigger_remove
is a brush entity available in all Source games. It is a trigger volume that removes any entities that touch it.

This is not the same as killing entities; i.e. NPCs removed in this manner will not fire their OnKilled outputs.
Keyvalues
|
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
Flags
|
Inputs
EnableDisable:
- Enable / Disable
- Enable/disable this entity from performing its task. It might also disappear from view.
Outputs
- OnRemove
- Fired whenever an entity is removed.