thaile4ever

chunk

Dec 24th, 2012
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. local tArgs = { ... }
  2.  
  3. local startX = targs[1]
  4. local starty = targs[2]
  5.  
  6. local chunkX = math.floor(startx / 48)
  7. local chunky = math.floor(starty / 48)
  8.  
  9. local x = chunkx * 48
  10. local y = chunky * 48
  11.  
  12. print(x)
  13. print(y)
Advertisement
Add Comment
Please, Sign In to add comment