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

trigger_remove

From Valve Developer Community
Jump to: navigation, search
class hierarchy
CTriggerRemove defined in triggers.cpp
CBaseTrigger
CBaseToggle
CBaseEntity

trigger_remove is a brush entity available in all Source Source games. It is a trigger volume that removes any entities that touch it.

Warning.pngWarning:Removing some entities can cause instability.

This is not the same as killing entities; i.e. NPCs removed in this manner will not fire their OnKilled outputs.


In code, it is represented by theCTriggerRemoveclass, defined in thetriggers.cppfile.

Keyvalues

BaseTrigger:

Filter Name (filtername) <filter>
A filter entity to test potential activators against.
Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).

Targetname:
Name (targetname) <string>
The targetname that other entities refer to this entity by.

Flags


BaseTrigger:
  •  [1] : Clients (Survivors, Special Infected, Tanks Left 4 Dead series)
  •  [2] : NPCs (Common Infected, Witches Left 4 Dead series)
  •  [8] : Physics Objects
  •  [16] : Only player ally NPCs
  •  [32] : Only clients in vehicles
  •  [64] : Everything (not including physics debris)
  •  [512] : Only clients *not* in vehicles
  •  [1024] : Physics debris
  •  [2048] : Only NPCs in vehicles (respects player ally flag)
  •  [4096] : Disallow Bots

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.