Trigger remove: Difference between revisions
Jump to navigation
Jump to search
Warning:Removing some entities can cause instability.
(Removed the Scripting section; the only information it supplied was the fact that triggers can be parented, which isn't specific to trigger_remove) |
(-added class hierarchy, cleanup) |
||
Line 1: | Line 1: | ||
{{CD|CTriggerRemove|file1=triggers.cpp}} | |||
{{base brush|trigger_remove}} It is a [[trigger]] volume that removes any [[entity|entities]] that touch it. | {{base brush|trigger_remove}} It is a [[trigger]] volume that removes any [[entity|entities]] that touch it. | ||
Line 11: | Line 12: | ||
==Keyvalues== | ==Keyvalues== | ||
{{KV Trigger}} | {{KV Trigger}} | ||
{{KV Targetname}} | |||
==Flags== | ==Flags== | ||
Line 16: | Line 18: | ||
==Inputs== | ==Inputs== | ||
{{I | {{I EnableDisable}} | ||
==Outputs== | ==Outputs== | ||
{{IO|OnRemove|Fired whenever an entity is removed.}} | {{IO|OnRemove|Fired whenever an entity is removed.}} | ||
Revision as of 03:47, 6 November 2022
![]() |
---|
CTriggerRemove |
![]() |
Template:Base brush 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.