S
Shadow_
Guest
hello,
i was wondering which can be faster execution wise using getspectators function or this code
i was wondering which can be faster execution wise using getspectators function or this code
Lua:
for x = positionPlayer.x - distance, positionPlayer.x + distance do
for y = positionPlayer.y - distance, positionPlayer.y + distance do
for z = positionPlayer.z, positionPlayer.z do
local tileP = Tile(x, y, z)
if tileP then
local creatureP = tileP:getTopCreature()
if creatureP and creatureP:isPlayer() then
for xx = 1, #names do
if creatureP:getName() == names[xx] then
posOfPlayer[#posOfPlayer+1] = creatureP
end
end
end
end
end
end
end