Skip to content

API > MLGrab > OnPrimaryTriggerUp


MLGrab.OnPrimaryTriggerUp⚓︎

Read-Only

Read-only Property This property is Read-Only

Name Type
OnPrimaryTriggerUp EventHandler

Event callback function requirement⚓︎

Info

This property is an event. It means that you need to add a listener function to it. Here how that function needs to look like.

function();

Usage⚓︎

--- @type 
local mlgrab;

--- callback function called when event triggers

local function CallBack()
    -- code to handle event call back
end


-- Regsiter callback function
mlgrab.OnPrimaryTriggerUp.Add(CallBack);

Description⚓︎

The Event handler which gets invoked when the triggered button released for the primary hand. This event is invoked in all the clients if the grabbable object synchronized through the MLSynchronizer component.