ProtoFlux:UpdatesOrTimeDelay: Difference between revisions

From Resonite Wiki
m YoshBot moved page ProtoFlux:Updates Or Time Delay to ProtoFlux:UpdatesOrTimeDelay: Automated: removing spaces from ProtoFlux namespace
correct description of how Updates and Duration are handled + fix ASync Call -> Async Call
 
Line 15: Line 15:
|}}
|}}


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 if provided or Duration (Pseudo-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.  
 
TODO: Which time takes priority?


== Inputs ==
== Inputs ==


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


Call to start the delay.
Call to start the delay.
Line 31: Line 29:
=== Duration (Pseudo-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 41: Line 39:
=== Next ([[Impulses|Continuation]]) ===
=== Next ([[Impulses|Continuation]]) ===


Fires after Updates ([[Type:Int|int]]) updates has passed or Duration (Pseudo-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