ProtoFlux:Update: Difference between revisions

From Resonite Wiki
fix type links
m reword
 
(5 intermediate revisions by 3 users not shown)
Line 4: Line 4:
|Outputs=
|Outputs=
[
[
{"Name": "OnUpdate", "Type":"Impulse"}
{"Name": "OnUpdate", "Type":"Call"}
]
]
|Globals=
|Globals=
Line 12: Line 12:
]
]
|}}
|}}
Will send a pulse every game tick from the UpdatingUser if [[Type:User|User]] is provided.


If the UpdatingUser is not provided and SkipIfNull is Null or False, it will pulse for every user for every game tick, this can lead to undesired behavior.
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 19:29, 1 January 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