update to add the onuser information |
m YoshBot moved page ProtoFlux:Slot Children Events to ProtoFlux:SlotChildrenEvents: Automated: removing spaces from ProtoFlux namespace |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 28: | Line 28: | ||
When this node is used the user who fires the impulse is determined using the following steps: | When this node is used the user who fires the impulse is determined using the following steps: | ||
1: If | 1: If null fire the impulse for the user who added/removed the slot. | ||
2: If set to a user, only that user will fire the event. | 2: If set to a user, only that user will fire the event. | ||
3: If is connected to a localuser node fire for all users. | |||
Latest revision as of 00:35, 21 August 2025
Slot Children events is a ProtoFlux node that monitors a given Instance (Slot). It then sends impulses for OnChildAdded (Call) and OnChildRemoved (Call) when children are added or removed. When an event trigger happens, Child (Slot) is available for reading during the impulse.
Inputs
OnUser (User)
The user that should monitor the given Instance (Slot) for slot events. Only if this user sees a slot change will a call be triggered from this node.
When this node is used the user who fires the impulse is determined using the following steps:
1: If null fire the impulse for the user who added/removed the slot.
2: If set to a user, only that user will fire the event.
3: If is connected to a localuser node fire for all users.
Note: unlike fire on true/false/change it does not care if it is under a users avatar, the two above steps are the only ones that exist.
Outputs
OnChildAdded (Call)
Sends an impulse when a child is added to Instance (Slot) according to what the user provided to OnUser (User) sees on their client.
OnChildRemoved (Call)
Sends an impulse when a child is removed from Instance (Slot) according to what the user provided to OnUser (User) sees on their client.
Child (Slot)
The child object that was added or removed from Instance (Slot). This will only have a value during an impulse from OnChildAdded (Call) and OnChildRemoved (Call).
Globals
Instance (Slot)
The slot to monitor for slot events using OnUser (User)'s client.
Examples
-
Example of how to use a Slot Children Events to check when a box is put on a shelf.