Posted 01 June 2017 - 06:13 PM
I want to toggle on each color the output and it doesnt work. Can any one help me with this?
Im new at Computercraft and Lua
Here I want to toggle only the Red Cable
Im new at Computercraft and Lua
Here I want to toggle only the Red Cable
right = rs.getBundledInput("right",colors.red)
if right == false then
rs.setBundledOutput("right",colors.combine(rs.getBundledInput("right"),colors.red))
else
rs.setBundledOutput("right",colors.subtract(rs.getBundledInput("right"),colors.red))
end