Logic relay: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
Line 2: Line 2:
==Entity Description==
==Entity Description==
[[Image:{{PAGENAME}}.png|right]]
[[Image:{{PAGENAME}}.png|right]]
A message forwarder. Fires an OnTrigger output when triggered, and can be disabled to prevent forwarding outputs.
A message forwarder. Fires an [[#Outputs|OnTrigger output]] when triggered, and can be disabled to prevent forwarding outputs.


Useful as an intermediary between one entity and another for turning on or off an I/O connection, or as a container for holding a set of outputs that can be triggered from multiple places. Additionally, its Enabled/Disabled state can be used for conditional logic (“if, then” style logic).{{clr}}
Useful as an intermediary between one entity and another for turning on or off an I/O connection, or as a container for holding a set of outputs that can be triggered from multiple places. Additionally, its Enabled/Disabled state can be used for conditional logic (“if, then” style logic).{{clr}}

Revision as of 22:37, 29 March 2006

Template:Wrongtitle

Entity Description

Logic relay.png

A message forwarder. Fires an OnTrigger output when triggered, and can be disabled to prevent forwarding outputs.

Useful as an intermediary between one entity and another for turning on or off an I/O connection, or as a container for holding a set of outputs that can be triggered from multiple places. Additionally, its Enabled/Disabled state can be used for conditional logic (“if, then” style logic).

Keyvalues

Flags

  • 1 : Only trigger once (Default Checked)
If checked, this entity starts on.
  • 2 : Allow fast retrigger (Default Unchecked)
Allows fast retriggering.

Inputs

  • Trigger
Trigger the relay, causing its OnTrigger output to fire if it is enabled.
  • Toggle
Toggle the relay between enabled and disabled.
  • CancelPending
Cancel any events fired by this relay that are currently pending in the I/O event queue.

Outputs

  • OnTrigger
Fired when the relay is triggered.