ProtoFlux:Update: Difference between revisions

From Resonite Wiki
add update node
 
m lnk
 
(8 intermediate revisions by 4 users not shown)
Line 4: Line 4:
|Outputs=
|Outputs=
[
[
{"Name": "OnUpdate", "Type":"Impulse"}
{"Name": "OnUpdate", "Type":"Call"}
]
]
|Globals=
|Globals=
Line 12: Line 12:
]
]
|}}
|}}
The '''Update''' node sends a pulse at every [[engine update]] from the <code>UpdatingUser</code>.
== Outputs ==
=== OnUpdate ([[Impulses|Call]]) ===
Sends a pulse every engine update from the <code>UpdatingUser</code>.
== Globals ==
=== UpdatingUser ([[Type:User|User]]) ===
The user that the <code>OnUpdate</code> pulse will be generated from and owned by.
This input can be [[drives|driven]] by a [[ProtoFlux:Local User|Local User]] node to generate impulses for every user. However, it would be better to use [[ProtoFlux:Local Update|Local Update]] instead of this node for this purpose.
=== SkipIfNull ([[Type:Nullable`1|Nullable]]&lt;[[Type:bool|bool]]&gt;) ===
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.
== See Also ==
* [[ProtoFlux:Local Update]] to generate an impulse from every user on their respective update timers.
* [[ProtoFlux:Updates Timer]] to generate an impulse at a specified interval of updates.
* [[ProtoFlux:Seconds Timer]] to generate an impulse at a specified interval of seconds.


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

Latest revision as of 00:12, 21 April 2025

Update
OnUpdate
UpdatingUser
null
SkipIfNull
null
Flow

The Update node sends a pulse at every engine update from the UpdatingUser.

Outputs

OnUpdate (Call)

Sends a pulse every engine update from the UpdatingUser.

Globals

UpdatingUser (User)

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

This input can be driven by a Local User node to generate impulses for every user. However, it would be better to use Local Update instead of this node for this purpose.

SkipIfNull (Nullable<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.

See Also