fantadada

8888888

Jan 31st, 2016
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. rednet.open("top")
  2. while true do
  3.     id, msg = os.pullEvent("rednet_message")
  4.         if msg == "open" then
  5.             rednet.send(id, "open1")
  6.             sleep(1)
  7.             rednet.send(id, "open2")
  8.         if msg == "close" then
  9.             rednet.send(id, "close1")
  10.             sleep(1)
  11.             rednet.send(id, "close2")
  12.  
  13.     end
  14. end
Add Comment
Please, Sign In to add comment