Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local side = "back"
- function alloff()
- rs.setBundledOutput(side, 0)
- end
- function set(color, state)
- color = colors[color] or colours[color]
- if not color then
- error("Invalid colour", 2)
- end
- local func = (state and colors.combine or colors.subtract)
- rs.setBundledOutput(side, func(rs.getBundledOutput(side), color))
- end
- function get(color)
- color = colors[color] or colours[color]
- return rs.testBundledInput(output_side, color)
- end
- function setside(s)
- side = s
- end
Advertisement
Add Comment
Please, Sign In to add comment