Jump to content




redstone input checker


  • You cannot reply to this topic
2 replies to this topic

#1 sfprotego

  • New Members
  • 2 posts

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

#2 jay5476

  • Members
  • 289 posts

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 by jay5476, 30 November 2013 - 05:16 PM.


#3 sfprotego

  • New Members
  • 2 posts

Posted 01 December 2013 - 12:53 PM

ty very much





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users