ProtoFlux:Fire On True: Difference between revisions

From Resonite Wiki
added link to impulses
m fix link
 
(7 intermediate revisions by 2 users not shown)
Line 9: Line 9:
|Outputs=
|Outputs=
[
[
{"Name": "OnChanged", "Type":"Impulse"}
{"Name": "OnChanged", "Type":"Call"}
]
]
|}}
|}}


{{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|[[ProtoFlux:Fire On Local True|Fire On Local True]]}}


== Inputs ==
== Inputs ==


=== 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]]) ===
{{FireOnUserInformation}}


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


== Outputs ==
== Outputs ==


=== OnChanged ([[Impulses|Continuation]]) ===
=== OnChanged ([[Impulses|Call]]) ===


Fires when the provided OnlyForUser ([[Type:User|User]]) sees the provided Condition ([[Type:Bool|bool]]) turn true.
Fires when the provided OnlyForUser ([[Type:User|User]]) sees the provided Condition ([[Type:Bool|bool]]) turn true.
== See Also ==
* [[ProtoFlux:Fire On False]]
* [[ProtoFlux:Fire On Change]]


[[Category:ProtoFlux:Flow]]
[[Category:ProtoFlux:Flow]]

Latest revision as of 18:56, 4 July 2024

Fire On True
OnlyForUser
OnChanged
Condition
Flow
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).

Determining the Owner of the Impulse

When this node is used the user who fires the impulse is determined using the following steps:

  1. If the OnlyForUser (User) property is set to ProtoFlux:Local User, fire for all users in a session.
  2. If the OnlyForUser (User) property is not null only fire for this user.
  3. If the Node is parented under a User, fire only for that user.
  4. Otherwise fire for all users in a session.

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