Rare Spawn
Well-known member
I need a hint as to why this doesnt work like I think it should. The error I get is about about concatenating the string and the integer value of ID.
I read that Lua .. is suppose to convert to strings automatically. I attempted to use tostring() with no luck.
This throws a Lua error:
Error
And this is a workaround:
Non LUA workaround
What is the correct way to do this is Lua?
Thanks.
I read that Lua .. is suppose to convert to strings automatically. I attempted to use tostring() with no luck.
This throws a Lua error:
Error
Lua:
mq.cmd("/mqtarget id "..mq.TLO.SpawnSort(1,asc,PctHPs,"xtarhater radius 90").ID())
And this is a workaround:
Non LUA workaround
Lua:
mq.cmd("/mqtarget id ${SpawnSort[1,asc,PctHPs,xtarhater radius 90].ID}")
What is the correct way to do this is Lua?
Thanks.
