88 posts
Location
Austria(German)
Posted 13 July 2012 - 08:53 AM
function unsetAll(sSide)
redstone.setBundledOutput(sSide, 0)
end
Code from Wiki:
http://computercraft.info/wiki/index.php?title=Redstone.setBundledOutputI don't know why it doesn't work…
It's only getting reset after the programm finished!
NOTE: I've used SMP! Maybe it's a server problem or something like that.Kevin
445 posts
Posted 13 July 2012 - 01:41 PM
Maybe you just call it at the wrong time?
88 posts
Location
Austria(German)
Posted 13 July 2012 - 03:36 PM
nope cuz when I use:
for i=1,10 do
redstone.setBundledOutput("right", colors.white)
sleep(2)
redstone.setBundledOutput("right", 0)
sleep(2)
end
Won't work either!
2447 posts
Posted 13 July 2012 - 04:01 PM
That code looks fine. You sure the bundled cable is on the right hand side, and that nothing else is keeping the white cable on?
88 posts
Location
Austria(German)
Posted 13 July 2012 - 06:22 PM
Yep it is active at start but it doesn't get deactivated during the programm.. only at the end
88 posts
Location
Austria(German)
Posted 13 July 2012 - 08:44 PM
Does really nobody knows why it doesn't work?
436 posts
Posted 13 July 2012 - 10:10 PM
I've also noticed this problem. I spent an hour working on it before I decided to just try again. I labelled the computer (So I didn't lose the other programs I built), picked it up and moved it three blocks. . . north I think, and it worked after that. Just, add a sleep(0.2) to the end of the function.