Difference between revisions of "Delay With Value (LogiX node)"

From Neos Wiki
Jump to navigation Jump to search
(Update to new node style & update category)
Line 1: Line 1:
 
<languages></languages>
 
<languages></languages>
 
<translate>
 
<translate>
The '''Delay With Value''' node is used to fire an impulse after the input Delay (in seconds) when an impulse is received at Trigger. When the delayed impulse is fired, the value output by DelayedValue will also be equal to the input Value at the time that the Trigger impulse was received.
+
<!--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 = Object | Input2Name = Value
 +
| Output0Type = Impulse | Output0Name = Impulse
 +
| Output1Type = Impulse | Output1Name = OnTrigger
 +
| Output2Type = Object | Output2Name = DelayedValue
 +
}}
  
<!--[[File:|border|256px|right]]-->
+
<!--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.
  
== Inputs & Outputs ==
+
== Usage == <!--T:3-->
{| class="wikitable"
+
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.
|+Inputs
 
|-
 
| Color
 
| Label
 
| Type
 
|-
 
| style="background-color:{{Impulse-color}}" |
 
| Trigger
 
| [[:LogiX:Impulses|Impulse]]
 
|-
 
| style="background-color:{{Float-color}}" |
 
| Delay
 
| [[:Category:Types:Float|Float]]
 
|-
 
| style="background-color:{{Dummy-color}}" |
 
| Value
 
| dummy
 
|}
 
  
{| class="wikitable"
 
|+Outputs
 
|-
 
| Color
 
| Label
 
| Type
 
|-
 
| style="background-color:{{Impulse-color}}" |
 
| Impulse
 
| [[:LogiX:Impulses|Impulse]]
 
|-
 
| style="background-color:{{Impulse-color}}" |
 
| OnTrigger
 
| [[:LogiX:Impulses|Impulse]]
 
|-
 
| style="background-color:{{Dummy-color}}" |
 
| DelayedValue
 
| dummy
 
|}
 
  
== Usage ==
+
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.
When spawned from the node browser the Value input and DelayedValue output have an unset dummy data type, the node will recast when a valid input is provided. OnTrigger fires an impulse immediately after an impulse is received at Trigger. The Impulse output provides the delayed impulse - this defaults to firing one frame after the input Trigger impulse is received. The DelayedValue is only equal to the stored value for the time taken for the impulse chain initiated by the delayed Impulse to complete.
 
  
If instead an impulse and value should be delayed for a specified number of frame updates use the [[Updates Delay With Value (LogiX node)|Updates Delay With Value]] node.
 
== Examples ==
 
  
== Node Menu ==
+
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>.
 +
 
 +
 
 +
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>.
 +
 
 +
 
 +
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>
 
</translate>
  
[[Category:LogiX|Delay With Value]]
+
[[Category:LogiX{{#translation:}}|Delay with value]]
[[Category:LogiX: Flow|Delay With Value]]
+
[[Category:LogiX:Flow{{#translation:}}|Delay with value]]
{{:NodeMenu-Flow}}
+
{{:NodeMenu-Flow{{#translation:}}}}

Revision as of 20:41, 6 July 2021

Other languages:
English • ‎日本語 • ‎한국어
Delay with value
'Delay with value' LogiX node
Inputs
  Impulse Trigger
  Float Delay
  Object Value
Outputs
  Impulse Impulse
  Impulse OnTrigger
  Object 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.


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.

Examples

Node Menu

Flow
Back Events Boolean Latch Delay Delay With Value Dynamic Impulse Receiver Dynamic Impulse Receiver With Value`1
Dynamic Impulse Trigger Dynamic Impulse Trigger With Value`1 Fire On Change Fire On False Fire On True Fire While True For
If Impulse Demultiplexer Impulse Multiplexer Local Fire On Change`1 Local Fire On False Local Fire On True Local Impulse Timeout
Local Leaky Impulse Bucket One Per Frame Pulse Random Sequence Timer Update Updates Delay
Updates Delay With Value While