ProtoFlux:User Left: Difference between revisions

From Resonite Wiki
Created a page for the User Left node. Plus added a warning to let people know this is the last chance for getting user data with this node.
 
Add OnlyHost input
 
Line 2: Line 2:
|Name=User Left
|Name=User Left
|Category=World
|Category=World
|Inputs=
[
{"Name":"OnlyHost", "Type":"bool"}
]
|Outputs=
|Outputs=
[
[
Line 12: Line 16:


{{Note|Even though this will provide the user, it will only last for as long as this fired, only giving you enough time to check references, clean up anything, and using any of the data therein before the user fully leaves the world. After that point, that user, their references, and their data wont match to anything going forward past this point.|warning}}
{{Note|Even though this will provide the user, it will only last for as long as this fired, only giving you enough time to check references, clean up anything, and using any of the data therein before the user fully leaves the world. After that point, that user, their references, and their data wont match to anything going forward past this point.|warning}}
== Inputs ==
=== OnlyHost ([[Types:Bool|bool]]) ===
Should this impulse only run on the host. (Default: true) Will run an impulse for all users when set to false.


== Outputs ==
== Outputs ==

Latest revision as of 08:16, 25 January 2025

User Left
OnlyHost
OnLeft
LeftUser
World

The User Left node is an event that fires when a user leaves the current world this node is in, as well as providing that user.

Even though this will provide the user, it will only last for as long as this fired, only giving you enough time to check references, clean up anything, and using any of the data therein before the user fully leaves the world. After that point, that user, their references, and their data wont match to anything going forward past this point.

Inputs

OnlyHost (bool)

Should this impulse only run on the host. (Default: true) Will run an impulse for all users when set to false.

Outputs

OnLeft (Call)

Fires when a user leaves the world.

LeftUser (User)

The User that left the world.