ProtoFlux:Fire On Change: Difference between revisions

From Resonite Wiki
No edit summary
No edit summary
Line 13: Line 13:
|}}
|}}


{{Template:Basic Fire On Information|Fire On True|changes|the OnlyForUser ([[Type:User|User]]) provided|[[ProtoFlux:Local Fire On True|Local Fire On True]]|[[ProtoFlux:Local Fire On Change|Local Fire On Change]]}}
{{Template:Basic Fire On Information|Fire On Change|changes|the OnlyForUser ([[Type:User|User]]) provided|[[ProtoFlux:Local Fire On Change|Local Fire On Change]]}}


Fire on change is a protoflux node that listens for changes to a value on the local client specified by OnlyForUser ([[Type:User|User]]). values that have imprecision or the Value (Generic) itself changes a lot, it could lead to undesired behavior and might be better to use [[Fire On True (ProtoFlux)| Fire On True]] and [[Fire On False (ProtoFlux)| Fire On False]].
Fire on change is a protoflux node that listens for changes to a value on the local client specified by OnlyForUser ([[Type:User|User]]). values that have imprecision or the Value (Generic) itself changes a lot, it could lead to undesired behavior and might be better to use [[Fire On True (ProtoFlux)| Fire On True]] and [[Fire On False (ProtoFlux)| Fire On False]].

Revision as of 01:38, 18 February 2024

Fire On Change
OnlyForUser
OnChanged
Value
Flow
Using this node with Local User or no user input may cause undesired outcomes.

Fire On Change Nodes will only fire if the OnlyForUser (User) provided has seen the value on their local machine changes.

When this node triggers from the OnlyForUser (User) provided it can be used to execute code that requires the impulse be from a specific user. This is useful for things like:

  • changing world properties
  • physics
  • cloud variables
  • other Local User sensitive nodes.

Fire on change is a protoflux node that listens for changes to a value on the local client specified by OnlyForUser (User). values that have imprecision or the Value (Generic) itself changes a lot, it could lead to undesired behavior and might be better to use Fire On True and Fire On False.

Inputs

OnlyForUser (User)

is the one "watching" for changes, if the Value (Generic) is localized and only changes for the OnlyForUser User, then it will send out a impulse for every change vs someone else who wouldn't see those changes.

Value (Generic)

The value or reference that OnlyForUser (User) should watch for changes on their client.

Outputs

OnChanged (impulse)

Will fire a single impulse from the OnlyForUser (User) input every time the value provided changes.

Examples