colobot-data/help/cbot/R/receive.txt

18 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

\b;Инструкция \c;receive\n;
Синтаксис:
\s;\c;receive ( имя, power );\n;
Получает информацию от ближайшего \l;поста обмена информацией\u object\exchange;.
\t;имя: \c;string\n;
Вид информации, которая нужна от поста обмена. Имя это строка: при написании его нужно брать в пометки " ".
\t;power: \c;float\n;
Power of the receiver, which corresponds to maximal distance between the receiver and the exchange post. If the distance is longer, no information is received. Default value is 10 metres.
\t;Возвращаемое значение: \c;\l;float\u cbot\float;\n;
Значение полученной информации. Если вблизи нет ни одного поста обмена, или на посте обмена нет вида запрошенной информации, то возвращается значение \c;nan\n;.
\t;Смотри также
\l;Программирование\u cbot;, \l;типы\u cbot\type; и \l;категории\u cbot\category;.