Colobot Wiki
Advertisement

Syntax:

flatground ( center, rmax );

Calculates the maximal radius of a flat zone on which a building can be built.

center: point[]

Center of the circular zone.

rmax: float[]

Maximal radius.

Return value: float[]

Radius of the flat zone (always between 0 and rmax).

Advertisement