m fix type |
add info, standardize, add example with a missing image link for later |
||
Line 13: | Line 13: | ||
|}} | |}} | ||
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]]. | |||
== Inputs == | |||
=== OnlyForUser ([[Type:User|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 that OnlyForUser ([[Type:User|User]]) should watch for changes on their client. | |||
== Outputs == | |||
=== OnChanged ([[Impulses|impulse]]) === | |||
Will fire a single [[Impulses|impulse]] from the OnlyForUser ([[Type:User|User]]) input every time the value provided changes. | |||
== Examples == | |||
<gallery widths=480px heights=480px> | |||
File:Protoflux_example_Fire_On_Change.webp|Fire On Change being used to tell when someone is on the ground according to the host user of a session. | |||
</gallery> | |||
[[Category:ProtoFlux:Flow]] | [[Category:ProtoFlux:Flow]] |
Revision as of 18:06, 16 February 2024
Fire On Change
Flow
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 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
-
Fire On Change being used to tell when someone is on the ground according to the host user of a session.