Advertisement
profezzional

navigate

Apr 20th, 2021
910
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.22 KB | None | 0 0
  1. local args = { ... }
  2. local LOCATE_TIMEOUT = 5
  3.  
  4. function navigate(x, y, z)
  5.     -- primitive at first
  6.     local currentX, currentY, currentZ = gps.locate(LOCATE_TIMEOUT)
  7.  
  8.     print(currentX, currentY, currentZ)
  9.  
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement