Skip to main content

MLSpeaker.SendMessageUpwards(string methodName, any value = nil)

Calls the method named methodName on every LuaScript in this game object and on every ancestor of the behaviour.

Parameters:

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

Usage

---@type MLSpeaker
local mlspeaker;

---@type string
local methodName;

---@type any
local value;


mlspeaker.SendMessageUpwards(methodName, value)