Posted 09 April 2012 - 11:49 PM
Couldn't find the answer to this question on the wiki.
function setColor(side, color, :P/>/>
local c = rs.getBundledOutput(side)
if b then
c = colors.combine(c, color)
else
c = colors.subtract(c, color)
end
rs.setBundledOutput(side, c)
end
You can use it like: setColor("back", colors.red, true) to turn on the red cable.
function setColor(side,color,:)/>/>
local c = rs.getBundledOutput(side)
if b then
c = colors.combine(c,color)
else
c = colors.subtract(c,color)
end
rs.setBundledOutput(side,c)
end
x = 0
while x < 1 do
rs.setBundledOutput("back",colors.orange,true)
x = x + 1
end
while x > 1 do
setColor("back",colors.orange,false)
x = x + 1
end
I know I totally copied what was before, but I am totally new to coding, and I'm in way over my head trying to setup a train station system. Any help would be great!