Delay With Value (LogiX node)
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.