Advertisement
Guest User

LightTest

a guest
Feb 10th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. local updateRate = 16
  2. local intervals = {}
  3. local delay = 24 / updateRate
  4. local modem = peripheral.find("modem")
  5.  
  6. local lights = {}
  7. lights.N = {}
  8. lights.E = {}
  9. lights.S = {}
  10. lights.W = {}
  11. lights.N.U = {}
  12. lights.N.UR = {}
  13. lights.N.R = {}
  14. lights.N.DR = {}
  15. lights.N.D = {}
  16. lights.N.DL = {}
  17. lights.N.L = {}
  18. lights.N.UL = {}
  19.  
  20.  
  21.  
  22.  
  23. intervals[1] = 0.000
  24.  
  25. for i=2,updateRate,1 do
  26.   intervals[i] = (delay * i)
  27.   print(intervals[i])
  28. end
  29.  
  30. while true do
  31.  
  32. for i=1,updateRate,1
  33.   if intervals[i]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement