Skip to content

API > MLGrab > OnSecondaryTriggerDownLocal


MLGrab.OnSecondaryTriggerDownLocal⚓︎

Read-Only

Read-only Property This property is Read-Only

Name Type
OnSecondaryTriggerDownLocal 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.OnSecondaryTriggerDownLocal.Add(CallBack);

Description⚓︎

Similar to the OnSecondaryTriggerDown which gets invoked with the trigger button pressed down for the secondary hand, however, this event handler only gets invoked if the local player is performing this action.