function Knight:AddItem(ItemGUID: string, ItemSlotData: KNIGHT_TYPES.ItemSlotData): boolean
print("Second func:", ItemGUID, ItemSlotData)
if Action == "CallFunc" then
local funcName: string = args[1]
local funcArgs: table|nil = args[2] or {}
warn("Unpacked: ", table.unpack(funcArgs))
local func = self[funcName];
local function foo(a: string, b: KNIGHT_TYPES.ItemSlotData)
print("First function;", a,b)
end
foo(table.unpack(funcArgs))
return func(table.unpack(funcArgs))
end
What do the contents of the {…} look like for the first function output, and the second function output? Does the second function output still contain the GUID, just doesn’t unpack it?
If you give it harded coded values, e.g. ‘a’, ‘b’, instead of the unpacked table, what does the second func output?