ProtoFlux:Seconds Timer: Difference between revisions

From Resonite Wiki
add more clarification
unstub
 
Line 17: Line 17:
|}}
|}}


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.  
The '''Seconds Timer''' node sends a pulse from the <code>UpdatingUser</code> at the specified interval of seconds.


== Inputs ==
== Inputs ==
Line 23: Line 23:
=== Interval ([[Type:Float|float]]) ===
=== 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.
The interval in seconds to send pulses at.


== Outputs ==
== Outputs ==
Line 29: Line 29:
=== OnUpdate ([[Impulses|Call]]) ===
=== 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.
Sends a pulse at every <code>Interval</code> seconds from the <code>UpdatingUser</code>.


== Globals ==
== Globals ==
Line 35: Line 35:
=== UpdatingUser ([[Type:User|User]]) ===  
=== UpdatingUser ([[Type:User|User]]) ===  


The user to send impulses from and to simulate the timer.
The user that the <code>OnUpdate</code> pulse will be generated from and owned by.


=== SkipIfNull ([[Type:Nullable`1|Bool?]] -> [[Type:Bool|bool]]) ===
=== 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.
If <code>True</code>, no pulses will be generated if <code>UpdatingUser</code> is null. Otherwise, impulses will be generated by the [[ProtoFlux:Host User|host user]] if <code>UpdatingUser</code> is null.


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


== Examples ==
== See Also ==


<gallery widths=480px heights=480px>
* [[ProtoFlux:Update]] to generate an impulse every engine update.
File:Protoflux_example_Seconds_Timer.webp|Seconds Timer being used to make an object move every x seconds.
* [[ProtoFlux:Updates Timer]] to generate an impulse at a specified interval of updates.
</gallery>
* [[ProtoFlux:Local Update]] to generate an impulse from every user every local engine update.


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

Latest revision as of 21:01, 24 December 2024

Seconds Timer
Interval
OnUpdate
UpdatingUser
null
SkipIfNull
null
Flow

The Seconds Timer node sends a pulse from the UpdatingUser at the specified interval of seconds.

Inputs

Interval (float)

The interval in seconds to send pulses at.

Outputs

OnUpdate (Call)

Sends a pulse at every Interval seconds from the UpdatingUser.

Globals

UpdatingUser (User)

The user that the OnUpdate pulse will be generated from and owned by.

SkipIfNull (Bool? -> bool)

If True, no pulses will be generated if UpdatingUser is null. Otherwise, impulses will be generated by the host user if UpdatingUser is null.

Examples

See Also