PaymentOption

doorCode

Apr 8th, 2012
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. local sSide = "right"
  2. rednet.open("left")
  3.  
  4. rs.setOutput(sSide, true)
  5.  
  6. while true do
  7.     sender, command = rednet.receive()
  8.    
  9.     if sender == 175 and command == "open" then
  10.         rs.setOutput(sSide, false)
  11.     elseif sender == 175 and command == "close" then
  12.         rs.setOutput(sSide, true)
  13.     end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment