Fandom

Colobot Wiki

Flag

67pages on
this wiki
Add New Page
Comments0 Share

A flag is an object that is used as a navigational indicator. As with all entities in Colobot, a flag's position can be gotten with the '.position' variable. For example, the following code will send the programmed bot to the nearest blue flag:

object flag = radar(BlueFlag);

goto(flag.position);

Note that it is not possible to simply do:

goto(radar(BlueFlag).position);

This editor is unsure of why this is the case.

Flags can be placed by the astronaut and can be used to designate arbitrary areas for use in programming. For a list of the names of different colors of flags, see the Category page.
Flag

The Blue Flag, one of many colors.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.