Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if os.loadAPI("myAPI.lua") then
- print("Successfuly loaded myAPI")
- myAPI.setBasePos(0,0,0,0)
- local useGps = false
- --???????? ????????? ????????? ???? ?? ?????
- if useGps then
- local x, y, z = gps.locate(1, false)
- if not x then
- print("Failed to get gps location")
- else
- print("Gps location established")
- myAPI.setPos(x,y,z,0)
- --???????? ???????? ???????????? ??????????? ????? ????????
- --???????? ??????? ?? ????
- end
- end
- else
- print("Failed to load myAPI")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement