ProtoFlux:Seconds Timer: Difference between revisions

From Resonite Wiki
More information about Timer behavior
add more clarification
 
(5 intermediate revisions by 2 users not shown)
Line 8: Line 8:
|Outputs=
|Outputs=
[
[
{"Name": "OnUpdate", "Type":"Impulse"}
{"Name": "OnUpdate", "Type":"Call"}
]
]
|Globals=
|Globals=
Line 17: Line 17:
|}}
|}}


Will pulse every X seconds specified from the UpdatingUser if the User is provided.  
Will pulse every Interval ([[Type:Float|float]]) seconds from the UpdatingUser ([[Type:User|User]]) depending on SkipIfNull ([[Type:Nullable`1|Bool?]] -> [[Type:Bool|bool]])'s arguments.  


If the UpdatingUser is not provided and SkipIfNull is Null or False, it will pulse for every user.
== Inputs ==
 
=== Interval ([[Type:Float|float]]) ===
 
How often in seconds should the node send an impulse from UpdatingUser ([[Type:User|User]]) accounting for SkipIfNull ([[Type:Nullable`1|Bool?]] -> [[Type:Bool|bool]])'s arguments.
 
== Outputs ==
 
=== OnUpdate ([[Impulses|Call]]) ===
 
Sends an Impulse every Interval ([[Type:Float|float]]) seconds from the user depending on SkipIfNull ([[Type:Nullable`1|Bool?]] -> [[Type:Bool|bool]])'s arguments.
 
== Globals ==
 
=== UpdatingUser ([[Type:User|User]]) ===
 
The user to send impulses from and to simulate the timer.
 
=== SkipIfNull ([[Type:Nullable`1|Bool?]] -> [[Type:Bool|bool]]) ===
 
If it should pulse for every user, or pulse for everyone if UpdatingUser ([[Type:User|User]]) is null every Interval ([[Type:Float|float]]) seconds.
 
This field can be clicked on to change it's value.
 
== Examples ==
 
<gallery widths=480px heights=480px>
File:Protoflux_example_Seconds_Timer.webp|Seconds Timer being used to make an object move every x seconds.
</gallery>


[[Category:ProtoFlux:Flow]]
[[Category:ProtoFlux:Flow]]

Latest revision as of 18:29, 16 February 2024

Seconds Timer
Interval
OnUpdate
UpdatingUser
null
SkipIfNull
null
Flow

Will pulse every Interval (float) seconds from the UpdatingUser (User) depending on SkipIfNull (Bool? -> bool)'s arguments.

Inputs

Interval (float)

How often in seconds should the node send an impulse from UpdatingUser (User) accounting for SkipIfNull (Bool? -> bool)'s arguments.

Outputs

OnUpdate (Call)

Sends an Impulse every Interval (float) seconds from the user depending on SkipIfNull (Bool? -> bool)'s arguments.

Globals

UpdatingUser (User)

The user to send impulses from and to simulate the timer.

SkipIfNull (Bool? -> bool)

If it should pulse for every user, or pulse for everyone if UpdatingUser (User) is null every Interval (float) seconds.

This field can be clicked on to change it's value.

Examples