Skip to content

Api > MLGrab > SendMessageUpwards()


MLGrab.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:⚓︎

Name Type Description
methodName string Name of method to call.
value any Optional parameter value for the method.

Usage⚓︎

---@type MLGrab
local mlgrab;

---@type string
local methodName;

---@type any
local value;


mlgrab.SendMessageUpwards(methodName, value)