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:
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.