Logic relay queue

From Valve Developer Community
Revision as of 12:08, 17 January 2022 by Blixibon (talk | contribs) (New logic entity from Mapbase)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Mapbase point It is a variant of logic_relay which allows blocked Trigger inputs to "queue" when waiting for the relay to re-enable, or when waiting for the relay's delayed outputs to finish firing. When the relay is ready to refire, the queued Trigger inputs will fire automatically.

This entity is also available in Portal 2: Community Edition.

Keyvalues

Maximum Items (SetMaxQueueItems) <integer>
The maximum number of Trigger and TriggerWithParameter inputs allowed in the queue. Any others received while this value is full will be discarded. This does not count the I/O chain currently being handled.
Don't queue when disabled (DontQueueWhenDisabled) <boolean>
Prevents the relay from queuing inputs when disabled. This means inputs will only be queued when the relay is enabled and still handling its current I/O connections.
Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).


Inputs

Trigger
Trigger the relay, causing its OnTrigger output to fire if it is enabled.
EnableRefire
Automatically fired on a relay after any delayed outputs finish firing, allowing it to fire again.
TriggerWithParameter <stringRedirectInput/string>
Triggers the relay with a parameter, causing its OnTriggerParameter output to fire if it is enabled.

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.
Toggle:
Toggle
Toggle the enabled/disabled status of this entity.


Outputs

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 <stringRedirectInput/string>
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.