Colobot Wiki
Advertisement

Syntax:

space ( center, rmin, rmax, dist );

Determines the position of the nearest free space around a given position.

center: point (default: bot position)[]

Desired position of the free space.

rmin: float (default value: 8)[]

Minimum distance from the desired position.

rmax: float (default value: 50)[]

Maximum distance from the desired position.

dist: float (default value: 4)[]

Required distance between two free spaces.

Return: point[]

Position of the free space.

Advertisement