msgstr "Примените в качестве защиты при нападении муравьев со всех сторон программу <code>Spider2</code>, чтобы иметь возможность лететь на заданной высоте."
msgid "The program necessary for this task is somewhat similar to the program <code>Spider2</code> that looks for the closest ant, turns towards it and fires:"
msgstr "Программа, необходимая для выполнения этой задачи, чем-то напоминает программу <code>Spider2</code>, которая ищет ближайшего муравья, поворачивает бота ему навстречу и стреляет из пушки:"
msgid "You can copy-paste it to the editor, and adapt it. Replace <c/>radar(AlienSpider);<n/> by <c/>radar(AlienAnt);<n/>, and write before the <code>while</code> loop another loop that activates the jet beneath the <a object|botfj>winged shooter</a> until the bot reaches an altitude of 20 meters."
msgstr "Вы можете копировать-вставить ее редактор, и запустить. Замените <c/>radar(AlienSpider);<n/> на <c/>radar(AlienAnt);<n/>, и напишите перед циклом <code>while</code> еще один цикл, активирующий под <a object|botfj>крылатым стрелком</a> реактивный двигатель, пока бот не наберет высоту 20 мметров."
msgid "The instruction <code><a cbot|jet>jet</a>()</code> controls the jet beneath winged bots. The number in brackets must range between <code>-1</code> and <code>1</code>.<c/> jet(1);<n/> moves the bot upward with maximum speed.<c/> jet(-1);<n/> moves the bot downward with maximum speed, and <c/>jet(0);<n/> stabilizes the altitude. As the bot must reach a precise altitude, move it upward slowly with <c/>jet(0.2);<n/>, wait until it has reached the desired height, then stabilize the altitude with <c/>jet(0);<n/>."
msgstr "Инструкция <code><a cbot|jet>jet</a>()</code> управляет двигателем под крылатыми ботами. Число в кавычках должно быть между <code>-1</code> и <code>1</code>.<c/> jet(1);<n/> перемещает бота вверх с максимальной скоростью.<c/> jet(-1);<n/> перемещает бота с максимальной скоростью вниз, а <c/>jet(0);<n/> стабилизирует высоту. Так как боту необходимо набрать определенную высоту, медленно поднимите его вверх с <c/>jet(0.2);<n/>, подождите, пока он наберет желаемую высоту, а после этого стабилизируйте егос помощью команды <c/>jet(0);<n/>."
msgid "In order to \"wait until it has reached the desired height\", we need a conditional loop: the instructions inside the loop will be repeated only as long as a certain condition is true. The altitude of the bot is given by <code>position.z</code>. We already saw that <code>position</code> gives the position of the bot. And a position is given by the three coordinates x, y and z: the x-axis is the axis west-east, the y-axis is the axis south-north, and the z-axis is the vertical axis. Therefore we must wait while <code>position.z</code> is smaller than 20:"
msgstr "Чтобы \"подождать, пока он наберет желаемую высоту\", нам нужен цикл с условием: инструкции внутри цикла будут повторяться до того времени, пока определенное условие будет истинным. Высота бота определяется <code>position.z</code>. Мы уже видели, что <code>position</code> задает позицию бота. Позиция задается тремя координатами x, y и z: ось x - это ось запад-восток, ось y - ось юг-север, а ось z - это вертикальная ось. Поэтому мы должны подождать, пока <code>position.z</code> будет меньше 20 метров:"
msgid "After waiting 0.2 seconds, the program will check if the altitude is still below 20 meters. If this is the case, it will wait a little more, if not, the program continues after the loop, i.e. after the closing brace <code>}</code>. Do not forget after the loop to stabilize the altitude with <c/>jet(0);<n/>."
msgstr "После задержки в 0.2 секунды программа проверит, какова высота бота над поверхностью, и не находится ли он ниже 20 метров. Если это так, она подождет еще немного, а если нет, программа будет продолжена после цикла, то есть после закрывающей скобки <code>}</code>. Не забудьте после цикла стабилизировать высоту <c/>jet(0);<n/>."