This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
AncientElbow's profile picture

Tekkit Classic (Server) Programming Trouble

Started by AncientElbow, 15 January 2013 - 07:43 PM
AncientElbow #1
Posted 15 January 2013 - 08:43 PM
Ok, so i have been programming a script but have run in to an error. I am trying to turn a set of lights on and off, the code for turning them on work perfectly, but i was wondering is there a code to turn them off as well? They're running through bundled cable. The code i am using for turning the lights on is this - rs.setBundledOutput("bottom", colors.white) and this does actually turn the lights on, but how would i turn the same piece of code into one that will turn the lights off, i've tried basic like changing rs.set into rs.unset but nothing? any help?
theoriginalbit #2
Posted 15 January 2013 - 08:46 PM
this is in the wrong section… for coding advice/help post in ask a pro… however here is your answer…

rs.setBundledOutput("bottom", 0 )
AncientElbow #3
Posted 15 January 2013 - 08:53 PM
Thankyou, i didn't really know where to put it, sorry haha
theoriginalbit #4
Posted 15 January 2013 - 08:59 PM
Thankyou, i didn't really know where to put it, sorry haha
Your welcome… Thats ok, a few people post in the wrong sections every now and again too :)/>
Lyqyd #5
Posted 17 January 2013 - 08:50 AM
Moved to Ask a Pro.