InvokeLocal
7/14/25Less than 1 minute
LuaEvents.InvokeLocal(LuaBehaviour script, string eventName, [optionalArguments] optional-arguments)
Like the Invoke() but invokes a local event.
Parameters:
| Name | Type | Description |
|---|---|---|
| script | LuaBehaviour | The current running script object from LUA.script. |
| eventName | string | The 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)
