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

redstone input checker

Started by sfprotego, 30 November 2013 - 03:40 PM
sfprotego #1
Posted 30 November 2013 - 04:40 PM
i made 2 door locks which send a redstone signal to a third computer when the right password has been entered.
now i want to make the third computer check if these both redstone signals are working at the same time.
the goal is to have to enter the password with 2 persons at the same moment in 2 different computers. To make the third computer emmit a signal to the door (like a kind of masterlock)
I hope you understand what I mean.
:D/>
jay5476 #2
Posted 30 November 2013 - 05:15 PM

while true do
  os.pullEvent("redstone")
  if rs.getInput("right") and rs.getInput("left") then
     -- do stuff
  end
end
if it gets signal from both sides it will run the code before the second last end
Edited on 30 November 2013 - 04:16 PM
sfprotego #3
Posted 01 December 2013 - 12:53 PM
ty very much