colobot-data/help/D/cbot/wait.txt

23 lines
783 B
Plaintext

\b;Instruction \c;wait\n;
The instruction \c;wait();\n; instructs the bot to wait for some seconds, according to the value written in brackets.
\b;Basic use
In order to wait until the \l;power cell\u object\power; is recharged on a power station, wait 5 seconds with \c;wait(5);\n;.
In order to wait until the \l;converter\u object\convert; finished transforming some \l;titanium ore\u object\titanore; in a \l;titanium cube\u object\titan;, wait 15 seconds with \c;wait(15);\n;.
\b;For specialists
Syntax:
\s;\c;wait ( time );\n;
Waits for a moment.
\t;time: \c;\l;float\u cbot\float;\n;
Specifies the time that the bot must wait.
\t;Return value: \c;\l;void\u cbot\void;\n;
None.
\t;See also
\l;Programming\u cbot;, \l;types\u cbot\type; and \l;categories\u cbot\category;.