Returning table values
Posted: Sun Jan 25, 2015 10:33 pm
Hey, trying to make an alternative map making system.
Is there someway to input the sub-table values back into the table t?
Code: Select all
function Corridorx1North(a,b,length, t)
for i = 1, length do
t[#t+1] = {tile = 9, x = a-map.tilesize, y = b+map.tilesize*length}
t[#t+1] = {tile = 1, x = a, y = b+map.tilesize*length}
t[#t+1] = {tile = 11, x = a+map.tilesize, y = b+map.tilesize*length}
end
return t
end