Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function sendLocation(host)
- x,y,z = gps.locate()
- homeid = rednet.lookup("home","home")
- if homeid == nil then
- print("Can't find host")
- else
- --print("ID:" .. homeid)
- message = tostring(x) .. " " .. tostring(y) .. " " .. tostring(z)
- rednet.send(homeid,message,"home")
- end
- end
- sendLocation("home")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement