Logic relay: Difference between revisions
Jump to navigation
Jump to search
TobyTurbo64 (talk | contribs) No edit summary |
No edit summary |
||
Line 21: | Line 21: | ||
{{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)}} | ||
{{IO|TriggerWithParameter|Triggers the relay with a parameter, causing its OnTriggerParameter output to fire if it is enabled.}}{{Mapbase add}} | |||
{{I Targetname}} | {{I Targetname}} | ||
Line 26: | Line 27: | ||
{{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.}} | ||
{{IO|OnTriggerParameter|Fired when the relay is triggered with a parameter. If the relay is set to only trigger once, it will delete itself after firing this output.}}{{Mapbase add}} | |||
{{O Targetname}} | {{O Targetname}} | ||
[[Category:IO System]] | [[Category:IO System]] |
Revision as of 06:57, 28 January 2020
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)
- TriggerWithParameter
- Triggers the relay with a parameter, causing its OnTriggerParameter output to fire if it is enabled.Template:Mapbase add
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.
- OnTriggerParameter
- Fired when the relay is triggered with a parameter. If the relay is set to only trigger once, it will delete itself after firing this output.Template:Mapbase add