ProtoFlux:FireOnLocalTrue: Difference between revisions

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


Fire On Local True is a ProtoFlux node that will check for when a boolean becomes true 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 '''FireOnLocalTrue''' node will [[Type:IExecutionChangeListener`1|listen]] for changes on its input bool and fire an [[impulse]] whenever the input turns from <code>False</code> to <code>True</code> across [[update|updates]].
 
Unlike [[ProtoFlux:FireOnTrue|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 ==


=== Condition (Generic) ===
=== Value ([[Type:bool|bool]]) ===


The boolean to check for if it has turned true on the local machine.
The bool that should be listened to for changes.


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


Fires when Condition (Generic) turns true on the local client.
Fires a single [[impulse]] owned by the local user whenever the provided input turns from <code>False</code> to <code>True</code> across updates.


== Examples ==
== See also ==


<gallery widths=480px heights=480px>
* [[ProtoFlux:FireOnTrue]] 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_True.webp|Fire On Local True being used in a particle effect for a firework.
* [[ProtoFlux:FireOnLocalChange]]
</gallery>
* [[ProtoFlux:FireOnLocalFalse]]


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

Latest revision as of 08:55, 19 September 2025

FireOnLocalTrue
Condition
OnChange
Flow

The FireOnLocalTrue node will listen for changes on its input bool and fire an impulse whenever the input turns from False to True across updates.

Unlike 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 (bool)

The bool that should be listened to for changes.

Outputs

OnChange (Call)

Fires a single impulse owned by the local user whenever the provided input turns from False to True across updates.

See also