Logic relay: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (It actually follows the the convention of all lower-case letters for the most part. But I understand why one would think it wouldn't.)
(AFAIK this is not the case...please discuss)
Line 3: Line 3:
{{base point|logic_relay}} It is a message forwarder. It can be used to fire many [[output]]s at once from just one input, or, by being disabled, to break an I/O chain.
{{base point|logic_relay}} It is a message forwarder. It can be used to fire many [[output]]s at once from just one input, or, by being disabled, to break an I/O chain.


This entity is crucial to use when using more than 5 outputs/inputs, otherwise the game will get the delays wrong/not out/input all of them.
<!-- This entity is crucial to use when using more than 5 outputs/inputs, otherwise the game will get the delays wrong/not out/input all of them. -->
 
{{clr}}
{{clr}}
== Keyvalues ==
== Keyvalues ==

Revision as of 05:50, 20 March 2011

Logic relay.png

Template:Base point It is a message forwarder. It can be used to fire many outputs at once from just one input, or, by being disabled, to break an I/O chain.


Keyvalues

Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).
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

Flags

  • Only trigger once
  • Allow fast retrigger (There is otherwise a 0.1 second delay between triggering)

Inputs

Trigger
Fire OnTrigger, if the relay is enabled.
Toggle
Toggle between enabled and disabled.
CancelPending
Cancels any events fired by this relay that are currently pending in the I/O event queue.

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.


Outputs

OnTrigger
Fired when the relay receives the Trigger input.
OnSpawn
Fired when the relay is spawned. If the relay is set to only trigger once, it will delete itself after firing this output.