D
Deleted member 141899
Guest
Hi, can someone help me to optimize this function?
Code:
function teleportArea(fromPos, toPos)
for x = fromPos.x, toPos.x do
for y = fromPos.y, toPos.y do
for z = toPos.z, toPos.z do
if(getTopCreature({x = x, y = y, z = z, stackpos = 255}).uid > 0) then
teleport all from this area to + 1 Z position, and stay their positions
end
end
end
end
return true
end