ProtoFlux:Fire On True: Difference between revisions

From Resonite Wiki
add danger note
No edit summary
Line 12: Line 12:
]
]
|}}
|}}
{{Template:Note|DO NOT: Use this node with a [[ProtoFlux:Local User|Local User]] Node. Instead use a [[ProtoFlux:Local Fire On True|Local Fire On True]] node. It WILL cause networking issues and fighting across clients.|danger}}


{{Template:Basic Fire On Information|Fire On True|turns <code>True</code>|the OnlyForUser ([[Type:User|User]]) provided}}
{{Template:Basic Fire On Information|Fire On True|turns <code>True</code>|the OnlyForUser ([[Type:User|User]]) provided}}


{{Template:Note|DO NOT: Use this node with a [[ProtoFlux:Local User|Local User]] Node. Instead use a [[ProtoFlux:Local Fire On True|Local Fire On True]] node. It WILL cause networking issues and fighting across clients.|danger}}


== Inputs ==
== Inputs ==
Line 21: Line 22:
=== OnlyForUser ([[Type:User|User]]) ===  
=== OnlyForUser ([[Type:User|User]]) ===  


The [[Type:User|User]] that should monitor the provided Condition ([[Type:Bool|bool]]) every game tick.
The [[Type:User|User]] that should monitor the provided Condition ([[Type:Bool|bool]]).


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


The [[Type:Bool|bool]] that should be monitored by the provided OnlyForUser ([[Type:User|User]]) every game tick.
The [[Type:Bool|bool]] that should be monitored by the provided OnlyForUser ([[Type:User|User]]).


== Outputs ==
== Outputs ==

Revision as of 01:34, 18 February 2024

Fire On True
OnlyForUser
OnChanged
Condition
Flow
DO NOT: Use this node with a Local User Node. Instead use a Local Fire On True node. It WILL cause networking issues and fighting across clients.
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).

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.