Advertisement
readix

gps

Feb 22nd, 2021
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. local x = 0
  2. local y = 0
  3. local z = 0
  4. local dirNS = 1 -- -1:nord 1: sud
  5. local dirEO = 1 -- -1:ouest
  6. function goto(posX, posY, posZ)
  7. while true do
  8. pos = read()
  9. x = srting.sub(pos, 0, 2)
  10. y = srting.sub(pos, 2, 4)
  11. z = srting.sub(pos, 4, 6)
  12.  
  13. while posX!=x and y!=posY and posZ!= do
  14. if posX!=x then
  15.  
  16.  
  17. end
  18. end
  19.  
  20.  
  21. end
  22.  
  23.  
  24.  
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement