ProtoFlux:OnGrabbableGrabbed: Difference between revisions

From Resonite Wiki
Create On Grabbable Grabbed ProtoFlux
 
Improve
 
(3 intermediate revisions by 3 users not shown)
Line 12: Line 12:
|}}
|}}


On Grabbable Grabbed is a ProtoFlux node that monitors an [[Type:IGrabbable|IGrabbable]] for when something or someone grabs it and sends an [[Impulses|Impulse]].
On Grabbable Grabbed is a ProtoFlux node that monitors an [[Type:IGrabbable|IGrabbable]] for when someone grabs it and sends an [[Impulses|Impulse]] that runs on the grabbing user's client.


== Outputs ==
== Outputs ==
Line 18: Line 18:
=== OnGrabbed ([[Impulses|Call]]) ===
=== OnGrabbed ([[Impulses|Call]]) ===


Sends an impulse when someone or something starts grabbing Grabbable ([[Type:IGrabbable|IGrabbable]]).
Sends an impulse when someone starts grabbing Grabbable ([[Type:IGrabbable|IGrabbable]]).


== Globals ==
== Globals ==
Line 24: Line 24:
=== Grabbable ([[Type:IGrabbable|IGrabbable]]) ===
=== Grabbable ([[Type:IGrabbable|IGrabbable]]) ===


The [[Type:IGrabbable|IGrabbable]] to monitor for when something or someone starts grabbing it.
The [[Type:IGrabbable|IGrabbable]] to monitor for when someone starts grabbing it.


== Examples ==
== Examples ==
<gallery widths=480px heights=480px>
<gallery widths=480px heights=300px>
File:Protoflux_example_Is_Grabbable_Scalable.webp|An example of On Grabbable Grabbed being used with a [[ProtoFlux:Local User|Local User]] (which is better) vs using a fire on not null using a [[ProtoFlux:Grabbable Grabber|Grabbable Grabber]] and having to use a user and having to check the grabber for who grabbed it.
File:Protoflux_example_On_Grabbable_Grabbed.webp|An example of On Grabbable Grabbed being used with a [[ProtoFlux:Local User|Local User]] (which is better) vs using a fire on not null using a [[ProtoFlux:Grabbable Grabber|Grabbable Grabber]] and having to use a user and having to check the grabber for who grabbed it.
</gallery>
</gallery>


[[Category:ProtoFlux:Interaction:Grabbable]]
[[Category:ProtoFlux:Interaction:Grabbable]]

Latest revision as of 00:04, 18 September 2025

On Grabbable Grabbed
OnGrabbed
Grabbable
null
Grabbable

On Grabbable Grabbed is a ProtoFlux node that monitors an IGrabbable for when someone grabs it and sends an Impulse that runs on the grabbing user's client.

Outputs

OnGrabbed (Call)

Sends an impulse when someone starts grabbing Grabbable (IGrabbable).

Globals

Grabbable (IGrabbable)

The IGrabbable to monitor for when someone starts grabbing it.

Examples