Difference between revisions of "Timer (LogiX node)"

From Neos Wiki
Jump to navigation Jump to search
(Notes on UpdatingUser edge cases)
(→‎Inputs & Outputs: restructures as a side by side to visually match how nodes look in-game)
Line 6: Line 6:
  
 
== Inputs & Outputs ==
 
== Inputs & Outputs ==
 +
{| style="margin: auto;
 +
|-
 +
!
 
{| class="wikitable"
 
{| class="wikitable"
 
|+Inputs
 
|+Inputs
Line 21: Line 24:
 
| [[:Category:Types:User|User]]
 
| [[:Category:Types:User|User]]
 
|}
 
|}
 
+
! style="text-align:center;" |
 
{| class="wikitable"
 
{| class="wikitable"
 
|+Outputs
 
|+Outputs
Line 32: Line 35:
 
| Pulse
 
| Pulse
 
| [[:LogiX:Impulses|Impulse]]
 
| [[:LogiX:Impulses|Impulse]]
 +
|}
 +
 
|}
 
|}
  

Revision as of 01:10, 18 March 2021

Other languages:
English • ‎日本語

The Timer node fires impulses from Pulse separated by the number of seconds specified by the Interval input.


Inputs & Outputs

Inputs
Color Label Type
Interval Float
UpdatingUser User
Outputs
Color Label Type
Pulse Impulse

Usage

The Interval value may be changed between successive impulses from Pulse. If the Interval is increased the next impulse will occur that many seconds after the previous output impulse - e.g. if an impulse is fired from Pulse while the Interval is 10 and then the Interval is changed to 60, the next impulse will fire 60 seconds after the previous one. Conversely, if the Interval value is decreased, the node will only wait until a number of seconds equal to the new value have passed; this means that if the new value is less than the number of seconds since the last output impulse another impulse is fired immediately.

Impulses are fired locally for the user provided to UpdatingUser. If no UpdatingUser is provided, it will fire for all users, as if you had connected a Local User node. If a null UpdatingUser is provided, the Interval node will not fire at all.

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