ProtoFlux:UpdatesOrTimeDelay: Difference between revisions

From Resonite Wiki
Create Updates Or Time Delay ProtoFlux Node Page
 
correct description of how Updates and Duration are handled + fix ASync Call -> Async Call
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#Invoke:ProtoFlux|GenerateUI
{{#Invoke:ProtoFlux|GenerateUI
|Name=Delay Updates
|Name=Updates or Time Delay
|Category=Async
|Category=Async
|Inputs=
|Inputs=
Line 15: Line 15:
|}}
|}}


Delay Updates is a ProtoFlux node that will send an impulse out of Next ([[Impulses|Continuation]]) after a delay. It will use Updates ([[Type:Int|int]]) updates if provided or Duration (Sudo-Generic) time if provided. It will start the delay after * ([[Impulses#ASync|ASync Call]]) is impulsed.  
Updates or Time Delay is a ProtoFlux node that will send an impulse out of Next ([[Impulses|Continuation]]) after a delay. It will use Updates ([[Type:Int|int]]) updates or Duration (Pseudo-generic) time, whichever comes first. It will start the delay after * ([[Impulses#Async|Async Call]]) is impulsed.  


== Inputs ==
== Inputs ==


=== * ([[Impulses#ASync|ASync Call]]) ===
=== * ([[Impulses#Async|Async Call]]) ===


Call to start the delay.
Call to start the delay.
Line 27: Line 27:
How many updates to delay for.
How many updates to delay for.


=== Duration (Sudo-Generic) ===
=== Duration (Pseudo-generic) ===


How long to delay for as a time rather than updates if provided.
How long to delay for as a time.


If a value other than a [[Type:TimeSpan|TimeSpan]] is provided, this value will delay it in seconds.
If a value other than a [[Type:TimeSpan|TimeSpan]] is provided, this value will delay it in seconds.
Line 39: Line 39:
=== Next ([[Impulses|Continuation]]) ===
=== Next ([[Impulses|Continuation]]) ===


Fires after Updates ([[Type:Int|int]]) updates has passed or Duration (Sudo-Generic) time after an impulse has been sent to * ([[Impulses#ASync|ASync Call]]).
Fires after Updates ([[Type:Int|int]]) updates or Duration (Pseudo-generic) time has passed after an impulse has been sent to * ([[Impulses#Async|Async Call]]).


=== OnTriggered ([[Impulses#ASync|ASync Call]]) ===
=== OnTriggered ([[Impulses#Async|Async Call]]) ===


fires immediately after * ([[Impulses#ASync|ASync Call]]) is called.
fires immediately after * ([[Impulses#Async|Async Call]]) is called.


== Examples ==
== Examples ==

Latest revision as of 04:13, 20 September 2025

Updates or Time Delay
*
Next
Updates
OnTriggered
Duration
Async

Updates or Time Delay is a ProtoFlux node that will send an impulse out of Next (Continuation) after a delay. It will use Updates (int) updates or Duration (Pseudo-generic) time, whichever comes first. It will start the delay after * (Async Call) is impulsed.

Inputs

* (Async Call)

Call to start the delay.

Updates (int)

How many updates to delay for.

Duration (Pseudo-generic)

How long to delay for as a time.

If a value other than a TimeSpan is provided, this value will delay it in seconds.

Examples: Float, Double, Int, TimeSpan.

Outputs

Next (Continuation)

Fires after Updates (int) updates or Duration (Pseudo-generic) time has passed after an impulse has been sent to * (Async Call).

OnTriggered (Async Call)

fires immediately after * (Async Call) is called.

Examples