Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- modem = peripheral.find("modem")
- droneCon = peripheral.find("drone_interface")
- rednet.open("left")
- io.write("Input tablet ID: ")
- buddy = tonumber(read())
- rednet.send(buddy, "con1")
- while true do
- event, sender, message, protocol = os.pullEvent("rednet_message")
- if protocol == sendLoc then
- droneCon.clearArea()
- userLoc = message
- term.setCursorPos(1,2)
- print(userLoc[1])
- print(userLoc[2])
- print(userLoc[3])
- x = tonumber(userLoc[1])
- y = tonumber(userLoc[2])
- z = tonumber(userLoc[3])
- droneCon.addArea(x, y, z)
- droneCon.setAction("goto")
- end
- end
Add Comment
Please, Sign In to add comment