Pinkishu

Untitled

Jun 18th, 2012
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.18 KB | None | 0 0
  1. function vecmoditer(a,i)
  2.   local x = (i%3) -1
  3.   local y = math.floor(i/3)-1
  4.   i=i+1
  5.   if i <= 9 then
  6.     return i,x,y
  7.   end
  8. end
  9.  
  10. function vecmods()
  11.   return vecmoditer,nil,0
  12. end
Advertisement
Add Comment
Please, Sign In to add comment