Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function locationd()
- -- Ensure that nobody can easily shut down all the potatOS computers on a network.
- -- Of course, they wouldn't want to, but you know.
- local m = peripheral.find("modem", function(_, p) return p.isWireless() end)
- if not m then return "no modem" end
- while true do
- local x, y, z = gps.locate()
- if x then
- if _G.potatOS then
- _G.potatOS.location = {x, y, z}
- end
- end
- sleep(60)
- end
- end
- return {
- name = "locationd",
- async = locationd
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement