Posted 27 November 2013 - 10:01 AM
Hello, I was wondering how to turn a specific wire off, rather than reset all of them,
For example,
rs.setBundledOutput("back",0) turns both the red and the yellow off, how can I turn just one off?
Also is there a way to keep the state of the wire when the program is turned off?
For example, making a program that allows you to toggle the lights in an area on and off, if you turn them on, then terminate or shutdown the terminal, the lights will turn off because it is no longer being powered. is there a way for it to remember the state of what the lights were in, or would I need to use something outside of computer craft for this?
Thanks,
Matt :)/>
For example,
rs.setBundledOutput("back", colors.combine(colors.red, colors.yellow))
sleep (1)
rs.setBundledOutput("back", 0)
rs.setBundledOutput("back",0) turns both the red and the yellow off, how can I turn just one off?
Also is there a way to keep the state of the wire when the program is turned off?
For example, making a program that allows you to toggle the lights in an area on and off, if you turn them on, then terminate or shutdown the terminal, the lights will turn off because it is no longer being powered. is there a way for it to remember the state of what the lights were in, or would I need to use something outside of computer craft for this?
Thanks,
Matt :)/>