Trigger remove: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
 Warning:Removing some entities can cause instability.
Warning:Removing some entities can cause instability.
		
	
| m (→Outputs:  Substituted IO templates) | |||
| (21 intermediate revisions by 13 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}} | |||
| {{ | |||
| {{warning|Removing some entities can cause instability.}} | {{warning|Removing some entities can cause instability.}} | ||
| 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
|  Class hierarchy | 
|---|
| CTriggerRemove | 
|  triggers.cpp | 
trigger_remove  is a   brush entity  available in all  Source games. It is a trigger volume that removes any entities that touch it.
 Source games. It is a trigger volume that removes any entities that touch it.
 Warning:Removing some entities can cause instability.
Warning: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.
Keyvalues
| 
 
 | 
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentnameortarget).
 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.



