It takes a table of arguments, and processes those with the following functions and arguments..function process(Table,...)
--local arg = table.pack(...)
if Table then T=Table else Spring.Echo("Lua:Toolkit:Process: No Table handed over") return end
if not arg then bDbgEcho("No args in process") return end
if type(arg)== "function" then return elementWise(T,arg) end
--if not arg then return Table end
for _, f in pairs(arg) do
if type(f)=="function" then
Now here is where the trouble starts- this function is running fine within the context of a unitscript call (HitByWeapon)
But not soo much in a thread on its own.
Actually there, it just doesn't receive the arguments and opts out early.
Anybody had a similar experience?
If it works its sweet peace, as in, it allows for processing of units with anonymous functions in lua.
Any help appreciated