trigger_relay

From Valve Developer Community
Jump to navigation Jump to search
Class hierarchy
CTriggerRelay
CBaseEntity
hl1_ents.cpp
Obsolete-notext.png
This entity is obsolete. Its use is discouraged. It may only exist/function in older engine branches.
It has since been deprecated by: logic_relay and logic_timer.
Trigger relay.png

trigger_relay is a logical entity available in Half-Life: Source Half-Life: Source.

Icon-Important.pngImportant:This entity counts as an edict! Use logic_relay or logic_timer instead.

Keyvalues

Name (targetname) <string> [ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Refire interval (repeatinterval) <float>
After the Use input the OnTrigger output will be fired repeatedly with this interval if Fire Once flag is not set.
Refire duration (repeatduration) <float>
Duration after which this entity is killed after being used.
Trigger State (triggerstate) <integer choices> Obsolete
Deprecated.
Unused leftover from GoldSrc; use the appropriate inputs instead.

Inputs

Use <void>
Fire this entity's outputs.

Outputs

OnTrigger <void>
!activator = activator of Use input, on refires it's this entity
!caller = this entity
Fired when this entity receives the Use input.

Flags

Fire Once : [1]
Kill this entity immediately after it fires the OnTrigger output.