Advertisement
Silasko

Phone Come

Apr 30th, 2022 (edited)
680
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. function phone_comeGPS()
  2.     rednet.open("back")
  3.         x2,y2,z2 = gps.locate()
  4.         rednet.broadcast("come")
  5.         --rednet.broadcast(x2,y2,z2)
  6.         id,message = rednet.receive()
  7.         print("Device "..id..": ")
  8.         print(message)
  9.         rednet.broadcast(x2)
  10.         rednet.broadcast(y2)
  11.         rednet.broadcast(z2)
  12. end
  13. phone_comeGPS()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement