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

computer redstone get

Started by Panda, 10 March 2013 - 06:51 AM
Panda #1
Posted 10 March 2013 - 07:51 AM
id like to know how i can get like when rdedstone is on on right side the computer sees it and does "something"
i tryed something like *when redstone.getInput("right") == true then
print("true")
else
print("false")
but cannot get it to work
thanks in advance
Lyqyd #2
Posted 10 March 2013 - 08:03 AM
Split into new topic.


while true do
  os.pullEvent("redstone")
  if rs.getInput("right") then
    print("On!")
  else
    print("Off!")
  end
end
Panda #3
Posted 10 March 2013 - 08:14 AM
oke tnx.