- Joined
- Jan 29, 2021
- RedCents
- 193¢
Is it possible to pass an array of Spawn objects to a function? I haven't found the right combination yet. Maybe I can only add the Spawn IDs to an array and pass that
Something like
targets = {mq.TLO.Spawn("Bert"),mq.TLO.Spawn("Ernie")}
or
targets = {mq.TLO.Spawn("Bert")(),mq.TLO.Spawn("Ernie")()}
list_targets(targets)
function list_targets(players)
for i=0, #players do
print(' - ' .. players.Name())
end
end
Something like
targets = {mq.TLO.Spawn("Bert"),mq.TLO.Spawn("Ernie")}
or
targets = {mq.TLO.Spawn("Bert")(),mq.TLO.Spawn("Ernie")()}
list_targets(targets)
function list_targets(players)
for i=0, #players do
print(' - ' .. players.Name())
end
end

