DomMOW

TrackingGPS

Jan 11th, 2021 (edited)
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.26 KB | None | 0 0
  1. rednet.close("top")
  2. rednet.open("top")
  3.  
  4. while true do
  5.     x, y, z = gps.locate(3)
  6.     print("I am at (" .. x .. ", " .. y .. ", " .. z .. ")")
  7.     rednet.broadcast("Troy is at (" .. x .. ", " .. y .. ", " .. z .. ")")
  8.     sleep(5)
  9.     shell.run("clear")
  10. end
Add Comment
Please, Sign In to add comment