Trigger once: Difference between revisions
Jump to navigation
Jump to search
TobyTurbo64 (talk | contribs) No edit summary |
(-added class hierarchy) |
||
Line 1: | Line 1: | ||
{{CD|CTriggerOnce|file1=triggers.cpp}} | |||
{{base_brush|trigger_once}} It is a trigger volume that removes itself after it has been triggered (touched by a qualifying entity) once. A [[trigger]] uses [[outputs]] to activate an [[event]] in another [[entity]]. | {{base_brush|trigger_once}} It is a trigger volume that removes itself after it has been triggered (touched by a qualifying entity) once. A [[trigger]] uses [[outputs]] to activate an [[event]] in another [[entity]]. | ||
{{sensor brush}} | {{sensor brush}} | ||
== Keyvalues == | == Keyvalues == | ||
{{KV TriggerOnce}} | {{KV TriggerOnce|nobase=1}} | ||
{{KV Targetname}} | |||
== Flags == | == Flags == | ||
Line 18: | Line 16: | ||
== Outputs == | == Outputs == | ||
{{O TriggerOnce}} | {{O TriggerOnce}} | ||
== See also == | |||
* [[trigger_multiple]] | |||
* [[Inputs and Outputs]] | |||
[[Category:IO System]] | [[Category:IO System]] |
Revision as of 02:50, 6 November 2022
![]() |
---|
CTriggerOnce |
![]() |
Template:Base brush It is a trigger volume that removes itself after it has been triggered (touched by a qualifying entity) once. A trigger uses outputs to activate an event in another entity.
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
BaseTrigger:
- Toggle
- Toggles this trigger between enabled and disabled states.
- Enable
- Enable trigger
- Disable
- Disable trigger
Outputs
TriggerOnce:
- OnStartTouch
- Fired when an entity starts touching this trigger. The touching entity must pass this trigger's filters to cause this output to fire. (!activator is the "toucher.")
- OnTrigger
- Fired repeatedly with a delay while an entity is within this trigger's volume. Delay is defined by Delay Before Reset key.