Trigger relay (Half-Life: Source): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (Substituted IO templates)
Line 15: Line 15:


== Inputs ==
== Inputs ==
{{IO|Use|param=void|Fire this entity's outputs.}}
{{I|Use|param=void|Fire this entity's outputs.}}


== Outputs ==
== Outputs ==
{{IO|OnTrigger|param=void|Fired when this entity receives the [[Use]] input.}}
{{O|OnTrigger|param=void|Fired when this entity receives the [[Use]] input.}}


== Flags ==
== Flags ==
{{fl|1|Fire Once|[[Kill]] this entity after it fires its outputs.}}
{{fl|1|Fire Once|[[Kill]] this entity after it fires its outputs.}}

Revision as of 11:25, 21 April 2025

C++ Class hierarchy
CTriggerRelay
CBaseEntity
C++ 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.
Trigger relay.png

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

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

Keyvalues

Refire interval (repeatinterval) <float>
Refire duration (repeatduration) <float>
Trigger State (triggerstate) <integer choices> Obsolete
Deprecated.
Leftover from GoldSrc; use the appropriate entity's inputs instead.
  • 0 - Off
  • 1 - On
  • 2 - Toggle

Inputs

Use <void>
Fire this entity's outputs.

Outputs

OnTrigger <void>
Fired when this entity receives the Use input.

Flags

Fire Once : [1]
Kill this entity after it fires its outputs.