Logic relay: Difference between revisions
Jump to navigation
Jump to search
(added some stuff that should be confirmed.) |
(I shoved 572 outputs into a button before, it works fine. Reverted to the old Enable/Disable description, and also removed the logic_auto confirm as its not necesary.) |
||
Line 4: | Line 4: | ||
{{base point|logic_relay|sprite=1}} 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. It can also be very helpful for organization and keeping you from having to edit MANY instances of the same outputs, as opposed to just one. | {{base point|logic_relay|sprite=1}} 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. It can also be very helpful for organization and keeping you from having to edit MANY instances of the same outputs, as opposed to just one. | ||
{{clr}} | {{clr}} | ||
Line 17: | Line 15: | ||
==Inputs== | ==Inputs== | ||
{{IO|Enable|Allows the relay to fire the OnTrigger outputs after being disabled.}} | |||
{{IO|Disable|Prevents the relay from firing OnTrigger outputs in response to Trigger inputs.}} | |||
{{IO|Trigger|Trigger the relay, causing its OnTrigger output to fire if it is enabled.}} | {{IO|Trigger|Trigger the relay, causing its OnTrigger output to fire if it is enabled.}} | ||
{{IO|Toggle|Toggle the relay between enabled and disabled.}} | {{IO|Toggle|Toggle the relay between enabled and disabled.}} | ||
{{IO|CancelPending|Cancel any events fired by this relay that are currently pending in the I/O event queue.}} | {{IO|CancelPending|Cancel any events fired by this relay that are currently pending in the I/O event queue.}} | ||
{{IO|EnableRefire|Allows a slow trigger to fire again. (See the second flag)}} | {{IO|EnableRefire|Allows a slow trigger to fire again. (See the second flag)}} | ||
{{I Targetname}} | {{I Targetname}} | ||
==Outputs== | ==Outputs== | ||
{{IO|OnSpawn|Fired when the relay is spawned. If the relay is set to only trigger once, it will delete itself after firing this output. | {{IO|OnSpawn|Fired when the relay is spawned. If the relay is set to only trigger once, it will delete itself after firing this output.}} | ||
{{IO|OnTrigger|Fired when the relay is triggered. If the relay is set to only trigger once, it will delete itself after firing this output.}} | {{IO|OnTrigger|Fired when the relay is triggered. If the relay is set to only trigger once, it will delete itself after firing this output.}} | ||
{{O Targetname}} | {{O Targetname}} |
Revision as of 00:50, 1 July 2018
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. It can also be very helpful for organization and keeping you from having to edit MANY instances of the same outputs, as opposed to just one.
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Start Disabled (StartDisabled) <boolean>
- Stay dormant until activated (with the
Enable
input).
Flags
- 1: Only trigger once
- 2: Allow fast retrigger (otherwise there is a minimum delay of 0.001 seconds)
Inputs
- Enable
- Allows the relay to fire the OnTrigger outputs after being disabled.
- Disable
- Prevents the relay from firing OnTrigger outputs in response to Trigger 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.
- EnableRefire
- Allows a slow trigger to fire again. (See the second flag)
Outputs
- OnSpawn
- Fired when the relay is spawned. If the relay is set to only trigger once, it will delete itself after firing this output.
- OnTrigger
- Fired when the relay is triggered. If the relay is set to only trigger once, it will delete itself after firing this output.