colobot-data/help/cbot/E/takeoff.txt

17 lines
613 B
Plaintext
Raw Normal View History

\b;Instruction \c;takeoff\n;
Syntax:
\s;\c;\l;object\u cbot\object;.takeoff ( );\n;
Takes off the spaceship.
\t;\l;object\u cbot\object;
\l;SpaceShip\u object\base;
\t;Return value: \c;\l;int\u cbot\int;\n;
Normally an error stops the program. You can prevent the program from stopping on errors by using the \c;\l;errmode\u cbot\errmode;(0)\n; instruction. A value different from zero if an error occurred is then returned by \c;takeoff()\n;.
\c;== 0 \n;Spaceship takes off
\c;!= 0 \n;Spaceship could not take off
\t;See also
\l;Programming\u cbot;, \l;types\u cbot\type; and \l;categories\u cbot\category;.