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

Programming help

Started by QcMoOnLiGhT, 09 August 2012 - 09:30 PM
QcMoOnLiGhT #1
Posted 09 August 2012 - 11:30 PM
Ok, so i tried to do it myself, to find out how things work. but i can't seems to understand it fully…

the thing is, im pretty sure its verry simple, its in my face but i cant see it…

here's a bit of what im trying to do.

I'm trying to: when the CC receive a redstone signals, it run a loop until i stop receiving the signals.

whats inside the loop i already know how to do it.

sorry if that answer was somewhere easy to find in the forum but i didnt found it or writed the wrong key words.
cant_delete_account #2
Posted 10 August 2012 - 12:01 AM
Try:

local rsSide = "back" --side the redstone signal is gonna be coming from
while rs.getInput(rsSide) do
--code while computer is receiving redstone
end
QcMoOnLiGhT #3
Posted 10 August 2012 - 12:11 AM
nice mate! i knew is was something simple and that i was just really noob xD it work like intended! thx mate ;)/>/>