Skip to main content

trigger_relay

trigger_relay icon
Point entity

A trigger_relay fires its target when you trigger it, with the use type you set, so it can change a Toggle into an On or an Off. It can also delay the trigger and pass the activator on to its targets.

Attributes​

The entity also has these common keys:

KeyDescriptionDefault
Trigger Statetriggerstate

Sets the use type the targets get. If the key is missing, the targets get Off, as in Half-Life.

  • Off (0)
  • On (1)
  • Toggle (2)
  • Copy Input (-1) - The use type the relay got
  • Reverse Input (-2) - On becomes Off and Off becomes On, and other use types pass on as they came
Default Off (0)
Delay Before ResetFeaturefulSven Co-opm_flDelayBeforeReset

After it fires, the relay ignores every trigger for this many seconds, where 0 means no wait.

MasterHalf-Life Unified SDKmaster

Names a master. While the master is locked for the activator, a trigger doesn't fire the relay's targets.

Flags​

1Remove On fire

The relay removes itself after it fires once

64Forward activatorFeaturefulSven Co-op

The targets get the activator the relay got. Without this flag, the relay itself is the activator

128Pass caller as activatorFeatureful

The targets get the entity that triggered the relay as their activator, and this flag wins over Forward activator

See also​

Changes since 1.38​

  • You can use the new Trigger State choices Copy Input (-1) and Reverse Input (-2), the new key Delay Before Reset and the new flags Forward activator (64) and Pass caller as activator (128)
  • trigger_relay has a Master