Skip to main content

LuaFileComponent.SendMessage(string methodName, any value = nil)

Calls the method named methodName on every Lua Script in this game object.

Parameters:

NameTypeDescription
methodNamestringName of the method to call.
valueanyOptional parameter for the method.

Usage

---@type LuaFileComponent
local luafilecomponent;

---@type string
local methodName;

---@type any
local value;


luafilecomponent.SendMessage(methodName, value)