Skip to main content

LuaEvents.InvokeLocal(LuaBehaviour script, string eventName, [optionalArguments] optional-arguments)

Like the Invoke() but invokes a local event.

Parameters:

NameTypeDescription
scriptLuaBehaviourThe current running script object from LUA.script.
eventNamestringThe name of the local event.
optional-arguments[optionalArguments]Optional parameters to pass.

Usage

---@type LuaBehaviour
local script;

---@type string
local eventName;

---@type [optionalArguments]
local optional-arguments;


LuaEvents:InvokeLocal(script, eventName, optional-arguments)