Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --PHONE APP--
- local SERVER_PORT = 0
- local PHONE_PORT = 20
- modem = peripheral.wrap("back")
- local cords = {}
- if (#arg == 3) then
- cords[4] = tonumber(arg[1])
- cords[5] = tonumber(arg[2])
- cords[6] = tonumber(arg[3])
- else
- error("NO SIZE GIVEN")
- end
- cords[1], cords[2], cords[3] = gps.locate()
- cords[1] = math.floor(cords[1])
- cords[2] = math.floor(cords[2])
- cords[3] = math.floor(cords[3])
- print("Targetting", cords[1], cords[2], cords[3])
- modem.transmit(SERVER_PORT, PHONE_PORT, cords)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement