Totoro 3 561 Опубликовано: 7 сентября, 2017 Компьютер: rednet.open("top") while true do event, key = os.pullEvent() print("key = ", key) rednet.send(2, tostring(key)) end Черепашка: rednet.open("right") while true do sender, command = rednet.receive() if command == "17" then turtle.forward() elseif command == "31" then turtle.back() elseif command == "30" then turtle.turnLeft() elseif command == "32" then turtle.turnRight() elseif command == "42" then turtle.down() elseif command == "57" then turtle.up() elseif command == "18" then turtle.dig() elseif command == "16" then turtle.place() end end Цитата Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах