Guest User

Untitled

a guest
Dec 13th, 2012
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local side = "back"
  2.  
  3. function alloff()
  4.   rs.setBundledOutput(side, 0)
  5. end
  6.  
  7. function set(color, state)
  8.  color = colors[color] or colours[color]
  9.  if not color then
  10.   error("Invalid colour", 2)
  11.  end
  12.  local func = (state and colors.combine or colors.subtract)
  13.  rs.setBundledOutput(side, func(rs.getBundledOutput(side), color))
  14. end
  15.  
  16. function get(color)
  17.  color = colors[color] or colours[color]
  18.  return rs.testBundledInput(output_side, color)
  19. end
  20.  
  21. function setside(s)
  22.  side = s
  23. end
Advertisement
Add Comment
Please, Sign In to add comment