m added category |
No edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 5: | Line 5: | ||
|Inputs= | |Inputs= | ||
[ | [ | ||
{"Name": "*", "Type": " | {"Name": "*", "Type": "Call"}, | ||
{"Name": "Anchor", "Type": " | {"Name": "Anchor", "Type": "IAvatarAnchor"}, | ||
{"Name": "User", "Type": "User"} | {"Name": "User", "Type": "User"} | ||
] | ] | ||
Line 16: | Line 16: | ||
|}} | |}} | ||
Anchor User is a ProtoFlux node that attempts to anchor a user to any anchor, which is provided to the node via the [[Type: | Anchor User is a ProtoFlux node that attempts to anchor a user to any anchor, which is provided to the node via the [[Type:IAvatarAnchor|IAvatarAnchor]] type. | ||
If the anchor succeeds, it doesn't nessarily mean the user has stayed in the anchor, and requires checking [[ProtoFlux:Anchored User|Anchored User Node]] A few updates later. | If the anchor succeeds, it doesn't nessarily mean the user has stayed in the anchor, and requires checking [[ProtoFlux:Anchored User|Anchored User Node]] A few updates later. | ||
Line 23: | Line 23: | ||
=== * ([[Impulses|Call]]) === | === * ([[Impulses|Call]]) === | ||
Anchors the User ([[Type:User|User]]) Upon impulse to the provided Anchor ([[Type: | Anchors the User ([[Type:User|User]]) Upon impulse to the provided Anchor ([[Type:IAvatarAnchor|IAvatarAnchor]]) | ||
=== Anchor ([[Type: | === Anchor ([[Type:IAvatarAnchor|IAvatarAnchor]]) === | ||
The anchor to put the provided User ([[Type:User|User]]) into. | The anchor to put the provided User ([[Type:User|User]]) into. | ||
=== User ([[Type:User|User]]) === | === User ([[Type:User|User]]) === | ||
The user to put into the provided Anchor ([[Type: | The user to put into the provided Anchor ([[Type:IAvatarAnchor|IAvatarAnchor]]). | ||
== Outputs == | == Outputs == | ||
Line 45: | Line 45: | ||
<gallery widths=480px heights=480px> | <gallery widths=480px heights=480px> | ||
File:Protoflux_example_anchor_user. | File:Protoflux_example_anchor_user.jpg|Example of how to anchor the user who pressed a button to a chair, which is seen behind the code. | ||
</gallery> | </gallery> | ||
[[Category:ProtoFlux:Avatars:Anchors]] | [[Category:ProtoFlux:Avatars:Anchors]] |
Latest revision as of 23:05, 22 April 2024
Anchor User is a ProtoFlux node that attempts to anchor a user to any anchor, which is provided to the node via the IAvatarAnchor type.
If the anchor succeeds, it doesn't nessarily mean the user has stayed in the anchor, and requires checking Anchored User Node A few updates later.
Inputs
* (Call)
Anchors the User (User) Upon impulse to the provided Anchor (IAvatarAnchor)
Anchor (IAvatarAnchor)
The anchor to put the provided User (User) into.
User (User)
The user to put into the provided Anchor (IAvatarAnchor).
Outputs
OnAnchored (Continuation)
Sends an impulse after * (Call) is called and the user was sucessfully anchored.
OnFail (Continuation)
Sends an impulse after * (Call) is called and the user was not anchored because the user currently is in another anchor, the provided anchor was null, or the provided anchor already had someone seated in it.
Examples
-
Example of how to anchor the user who pressed a button to a chair, which is seen behind the code.