Description
Preloads area to be used with findEmptyPosition command and returns true when area is ready.
The size of the area preloaded is from center - radius - maxDistance to center + radius + maxDistance
Important
Preloading large areas may take a long time, we are talking minutes. However once preloaded, it stays preloaded even after mission restart.
Syntax
center findEmptyPositionReady [radius, maxDistance]
Parameters:
center: Position2D or Position3D - search area center position in format [x,y] or [x,y,z] in which case z is ignoredradius: Number - distance from the centermaxDistance: Number - distance from the end of radius
Returns: Boolean - true when ready
Examples
Example 1
Preload aread within 500m:
_ready = _center findEmptyPositionReady [0, 500];