m YoshBot moved page ProtoFlux:Fire On True to ProtoFlux:FireOnTrue: Automated: removing spaces from ProtoFlux namespace |
overhaul |
||
Line 13: | Line 13: | ||
|}} | |}} | ||
The '''FireOnTrue''' node will [[Type:IExecutionChangeListener`1|listen]] for changes on its input bool and fire an [[impulses|impulse]] for the specified [[user]] whenever the input turns from <code>False</code> to <code>True</code> between [[update|updates]]. | |||
== Inputs == | == Inputs == | ||
Line 18: | Line 19: | ||
=== OnlyForUser ([[Type:User|User]]) === | === OnlyForUser ([[Type:User|User]]) === | ||
The | The user that will listen to the boolean and fire the impulse. | ||
{{ | {{FireOn user information}} | ||
=== Condition ([[Type: | === Condition ([[Type:bool|bool]]) === | ||
The | The bool that should be listened to for changes. | ||
== Outputs == | == Outputs == | ||
=== OnChanged ([[Impulses| | === OnChanged ([[Impulses|impulse]]) === | ||
Fires | Fires a single [[Impulses|impulse]] from the specified user whenever the provided input turns from <code>False</code> to <code>True</code> between updates. | ||
== See | == See also == | ||
* [[ProtoFlux: | |||
* [[ProtoFlux: | * [[ProtoFlux:FireOnLocalTrue]] will fire an impulse whenever <em>any</em> user detects <code>True</code> rather than a specific user. | ||
* [[ProtoFlux:FireOnFalse]] | |||
* [[ProtoFlux:FireOnChange]] | |||
[[Category:ProtoFlux:Flow]] | [[Category:ProtoFlux:Flow]] | ||
[[Category:Listener nodes]] | [[Category:Listener nodes]] |
Revision as of 08:24, 19 September 2025
The FireOnTrue node will listen for changes on its input bool and fire an impulse for the specified user whenever the input turns from False
to True
between updates.
Inputs
OnlyForUser (User)
The user that will listen to the boolean and fire the impulse.
For best practice, this should never be left null
or evaluated differently based on the user (e.g. via LocalUser). If this input is null
and the node is parented under a user, then the impulse will be fired for said user. If this input is null
and not parented under a user, or if this input evaluates differently for different users, then the impulse will tend to be fired for the first user that sees the change in value. This is usually the one who caused the change in the first place. This could cause inconsistent behavior unless carefully managed.
Condition (bool)
The bool that should be listened to for changes.
Outputs
OnChanged (impulse)
Fires a single impulse from the specified user whenever the provided input turns from False
to True
between updates.
See also
- ProtoFlux:FireOnLocalTrue will fire an impulse whenever any user detects
True
rather than a specific user. - ProtoFlux:FireOnFalse
- ProtoFlux:FireOnChange