ProtoFlux:Seconds Timer: Difference between revisions

From Resonite Wiki
m formatting
Add more info, no longer stub
Line 17: Line 17:
|}}
|}}


Will pulse every X seconds specified from the UpdatingUser if the [[Type:User|User]] is provided.  
Will pulse every X seconds specified from the UpdatingUser ([[Type:User|User]]) if UpdatingUser ([[Type:User|User]]) is provided.  


If the UpdatingUser is not provided and SkipIfNull is Null or False, it will pulse for every user.
== Inputs ==


{{Stub}}
=== Interval ([[Type:Float|float]]) ===
<i> needs examples</i>


<i> needs to be standardized</i>
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]]

Revision as of 18:29, 16 February 2024

Seconds Timer
Interval
OnUpdate
UpdatingUser
null
SkipIfNull
null
Flow

Will pulse every X seconds specified from the UpdatingUser (User) if UpdatingUser (User) is provided.

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