ProtoFlux:FireOnTrue: Difference between revisions

From Resonite Wiki
No edit summary
No edit summary
Line 20: Line 20:


The [[Type:User|User]] that should monitor the provided Condition ([[Type:Bool|bool]]).
The [[Type:User|User]] that should monitor the provided Condition ([[Type:Bool|bool]]).
{{FireOnUserInformation}}


=== Condition ([[Type:Bool|bool]]) ===  
=== Condition ([[Type:Bool|bool]]) ===  

Revision as of 01:46, 18 February 2024

Fire On True
OnlyForUser
OnChanged
Condition
Flow
This page is marked for deletion.

Reason: useless template

Please use the article's talk page if you would like to discuss or contest deletion.

See the Resonite Wiki's deletion policy for more details.
Admins: Please check the talk page for any discussions on the matter. Remember to remove all redirects, links, and transclusions relating to this page if deleted.
This page was last edited by ProbablePrime at 01:46, 18 February 2024 (UTC)

Using this node with Local User or no user input may cause undesired outcomes.

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

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.

Inputs

OnlyForUser (User)

The User that should monitor the provided Condition (bool).

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. If the desired behavior is for an impulse to fire by every user that detects a change for them locally, then use the local version of this node, which is linked at the bottom of the page.

Condition (bool)

The bool that should be monitored by the provided OnlyForUser (User).

Outputs

OnChanged (Call)

Fires when the provided OnlyForUser (User) sees the provided Condition (bool) turn true.

See Also