dragon81655

droneRemote

Jul 3rd, 2022
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. while true do
  2. local send = read()
  3. rednet.broadcast(send, "Drone")
  4. local id,info = rednet.receive("Remote")
  5. if(send == "Look") then
  6. print("Left: ".. info.left)
  7. print("Back: ".. info.back)
  8. print("Right: " .. info.right)
  9. end
  10. print("Front: " .. info.front)
  11. print("Up: " .. info.up)
  12. print("Down: " .. info.down)
  13. end
  14.  
Advertisement
Add Comment
Please, Sign In to add comment