ProtoFlux:FireOnLocalChange: Difference between revisions

From Resonite Wiki
m YoshBot moved page ProtoFlux:Fire On Local Change to ProtoFlux:FireOnLocalChange: Automated: removing spaces from ProtoFlux namespace
overhaul
Line 12: Line 12:
|}}
|}}


Fire On Local Change is a ProtoFlux node that will check for changes on the current machine, rather on a specific user. This is useful for things that you want to happen instantly for a client and are time sensitive (Ex: a video creating particle effect like a [[Meta Meme]])
The '''FireOnLocalChange''' node will [[Type:IExecutionChangeListener`1|listen]] for changes on its input and fire an [[impulse]] whenever the client detects a change in value across [[update|updates]].
 
Unlike its [[ProtoFlux:FireOnChange|its non-local equivalent]], every user's client will be listening for changes and fire impulses owned by themselves as opposed to only one user. This is useful when a time-sensitive value is already evaluated locally, making this node work without extra network delay.


== Inputs ==
== Inputs ==
Line 18: Line 20:
=== Value (Generic) ===
=== Value (Generic) ===


The value or reference to monitor for changes on the local machine.  
The value or object that should be listened to for changes.


== Outputs ==
== Outputs ==
Line 24: Line 26:
=== OnChange ([[Impulses|Call]]) ===
=== OnChange ([[Impulses|Call]]) ===


Fires when Value (Generic) changes on the local client.
Fires a single [[impulse]] owned by the local user whenever the provided input changes value across updates.


== Examples ==
== See also ==


<gallery widths=480px heights=480px>
* [[ProtoFlux:FireOnChange]] for the non-local equivalent of this node where a user to fire the impulse on can be specified.
File:Protoflux_example_Fire_On_Local_Change.webp|Fire On Local Change being used in a [[Meta Meme]].
* [[ProtoFlux:FireOnLocalTrue]]
</gallery>
* [[ProtoFlux:FireOnLocalFalse]]


[[Category:ProtoFlux:Flow]]
[[Category:ProtoFlux:Flow]]
[[Category:Listener nodes]]
[[Category:Listener nodes]]

Revision as of 08:49, 19 September 2025

FireOnLocalChange
Value
OnChange
Flow

The FireOnLocalChange node will listen for changes on its input and fire an impulse whenever the client detects a change in value across updates.

Unlike its its non-local equivalent, every user's client will be listening for changes and fire impulses owned by themselves as opposed to only one user. This is useful when a time-sensitive value is already evaluated locally, making this node work without extra network delay.

Inputs

Value (Generic)

The value or object that should be listened to for changes.

Outputs

OnChange (Call)

Fires a single impulse owned by the local user whenever the provided input changes value across updates.

See also