Advertisement
fantadada

porte dor

Oct 10th, 2015
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. rednet.open("right")
  2.  
  3.    
  4. while true do
  5.         sleep(0.1)
  6.          event, senderId, message, distance = os.pullEvent("rednet_message")
  7.                 if message == "" then
  8.                 rs.setOutput("back", true)
  9.         sleep(0.5)        
  10.     end
  11.         if message == "" then
  12.                 rs.setOutput("back", false)
  13.                 sleep(0.5)
  14.   end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement