\b;Instruction \c;build\n;
The instruction \c;build();\n; instructs the bot to build a building of a given \l;category\u cbot\category;.

\b;Grundlagen
Here is a program that looks for the nearest \l;titanium cube\u object\titan;, approaches it, and builds a \l;bot factory\u object\factory;.
\c;
\s; \l;object\u cbot\object; item = \l;radar\u cbot\radar;(\l;Titanium\u object\titan;);
\s; \l;goto\u cbot\goto;(item.position);
\s; build(\l;BotFactory\u object\factory;);
\n;
\b;Für Spezialisten
Syntax:
\s;\c;build ( cat );\n;

Constructs a building using a titanium cube in front of the \l;builder\u object\botbr;.

\t;cat: \c;\l;int\u cbot\int;\n;
\l;Category\u cbot\category; of a building.

\t;Rückgabe: \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;build()\n;.
\c;== 0 \n;Successfully built
\c;!= 0 \n;Impossible to build (for example, the nearest titanium cube is too far away or the specified building is not available in the mission)

\t;Siehe auch
\c;\l;canbuild\u cbot\canbuild;\n;, \c;\l;buildingenabled\u cbot\buildingenabled;\n;.
\l;Programming\u cbot;, \l;types\u cbot\type; and \l;categories\u cbot\category;.
