Difference between revisions of "Delay With Value (LogiX node)"
m (Zyzyl moved page Delay With Value to Delay With Value (LogiX node): Changing name to match standard form) |
|||
(9 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | Delay | + | <languages></languages> |
+ | <translate> | ||
+ | <!--T:1--> | ||
+ | {{Infobox Logix Node | ||
+ | | Name = Delay with value | ||
+ | | Image =[[File: DelayWithValueNode`1Node.png | noframe | 128px | 'Delay with value' LogiX node ]] | ||
+ | | Input0Type = Impulse | Input0Name = Trigger | ||
+ | | Input1Type = Float | Input1Name = Delay | ||
+ | | Input2Type = dummy | Input2Name = Value | ||
+ | | Output0Type = Impulse | Output0Name = Impulse | ||
+ | | Output1Type = Impulse | Output1Name = OnTrigger | ||
+ | | Output2Type = dummy | Output2Name = DelayedValue | ||
+ | }} | ||
+ | |||
+ | <!--T:2--> | ||
+ | The '''Delay with value''' node is used to fire an impulse from <code>Impulse</code> after <code>Delay</code> seconds have elapsed following an impulse received at <code>Trigger</code>. Additionally a value can be stored over the delay. | ||
+ | |||
+ | == Usage == <!--T:3--> | ||
+ | The <code>Delay</code> input sets the number of seconds which must elapse before the delayed impulse is fired from <code>Impulse</code>. The default value is 0 which results in a delay of 1 frame update. | ||
+ | |||
+ | |||
+ | <!--T:6--> | ||
+ | The <code>Value</code> input value at the moment an impulse is received at <code>Trigger</code> is stored. When the node is spawned from the node browser this accepts a 'dummy' datatype, however the node will overload to accept any specific input datatype when a wire is connected. | ||
+ | |||
+ | |||
+ | <!--T:7--> | ||
+ | The <code>OnTrigger</code> output fires an impulse immediately after an impulse is received at <code>Trigger</code>. This continues the impulse chain which arrived at <code>Trigger</code>. If a user focuses a different world while they have delayed impulses queued, the delayed impulses will fire as normal. However, if a user with delayed impulses leave the world entirely, their delayed impulses will never fire. | ||
+ | |||
+ | |||
+ | |||
+ | <!--T:8--> | ||
+ | The <code>DelayedValue</code> output provides the value at the <code>Value</code> input when the delayed impulse was queued. This is only available for the duration of the impulse chain started by <code>Impulse</code>. | ||
+ | |||
+ | |||
+ | <!--T:9--> | ||
+ | The delayed impulses do not continue the impulse chain which arrived at <code>Trigger</code> and any temporary values, other than that the single stored value will be lost. Each impulse which arrives at <code>Trigger</code> sets up a separate delayed impulse with corresponding stored value and multiple can be queued at once with different delay durations and stored values. | ||
+ | |||
+ | == Examples == <!--T:4--> | ||
+ | |||
+ | == Node Menu == <!--T:5--> | ||
+ | </translate> | ||
+ | |||
+ | [[Category:LogiX{{#translation:}}|Delay with value]] | ||
+ | [[Category:LogiX:Flow{{#translation:}}|Delay with value]] | ||
+ | {{:NodeMenu-Flow}} |
Latest revision as of 14:19, 19 February 2022
Delay with value | ||
---|---|---|
Inputs | ||
Impulse | Trigger | |
Float | Delay | |
dummy | Value | |
Outputs | ||
Impulse | Impulse | |
Impulse | OnTrigger | |
dummy | DelayedValue |
The Delay with value node is used to fire an impulse from Impulse
after Delay
seconds have elapsed following an impulse received at Trigger
. Additionally a value can be stored over the delay.
Usage
The Delay
input sets the number of seconds which must elapse before the delayed impulse is fired from Impulse
. The default value is 0 which results in a delay of 1 frame update.
The Value
input value at the moment an impulse is received at Trigger
is stored. When the node is spawned from the node browser this accepts a 'dummy' datatype, however the node will overload to accept any specific input datatype when a wire is connected.
The OnTrigger
output fires an impulse immediately after an impulse is received at Trigger
. This continues the impulse chain which arrived at Trigger
. If a user focuses a different world while they have delayed impulses queued, the delayed impulses will fire as normal. However, if a user with delayed impulses leave the world entirely, their delayed impulses will never fire.
The DelayedValue
output provides the value at the Value
input when the delayed impulse was queued. This is only available for the duration of the impulse chain started by Impulse
.
The delayed impulses do not continue the impulse chain which arrived at Trigger
and any temporary values, other than that the single stored value will be lost. Each impulse which arrives at Trigger
sets up a separate delayed impulse with corresponding stored value and multiple can be queued at once with different delay durations and stored values.