ProtoFlux:On Start: Difference between revisions

From Resonite Wiki
Create On Start ProtoFlux Node Page
 
No edit summary
Line 12: Line 12:
|}}
|}}


On Start is a ProtoFlux node that is only loaded with the world save in a new session. (Ex: Previously saved in the world).
The On Start ProtoFlux node triggers on the start of that instance of the node's existence for the local user.


To check if a user joined, use [[ProtoFlux:User Joined|User Joined]] instead of this node.
To check if a user joined, use [[ProtoFlux:User Joined|User Joined]] instead of this node.
Line 20: Line 20:
=== OnlyHost ([[Type:Bool|bool]]) ===
=== OnlyHost ([[Type:Bool|bool]]) ===


If enabled, Trigger will only fire when the host has just started the session and loaded this node. Else, the code will fire for each new person joining the session with this node in it.
If enabled, Trigger will only fire for the host.


== Outputs ==
== Outputs ==
Line 26: Line 26:
=== Trigger ([[Impulses|Call]]) ===
=== Trigger ([[Impulses|Call]]) ===


Sends an Impulse when the node is part of a world already and is loaded by someone or the host according to OnlyHost ([[Type:Bool|bool]]). The node has to be part of the world already.
Sends a pulse when the node starts, this can be triggered from the node being duplicated or spawned.


== Examples ==
== Examples ==

Revision as of 05:17, 21 May 2024

On Start
OnlyHost
Trigger
Events

The On Start ProtoFlux node triggers on the start of that instance of the node's existence for the local user.

To check if a user joined, use User Joined instead of this node.

Inputs

OnlyHost (bool)

If enabled, Trigger will only fire for the host.

Outputs

Trigger (Call)

Sends a pulse when the node starts, this can be triggered from the node being duplicated or spawned.

Examples