findEmptyPositionReady: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "Position2D" to "Position2D") |
Lou Montana (talk | contribs) m (Text replacement - "Position3D" to "Position3D") |
||
Line 19: | Line 19: | ||
|s1= center [[findEmptyPositionReady]] [radius, maxDistance] | |s1= center [[findEmptyPositionReady]] [radius, maxDistance] | ||
|p1= center: [[Array]] - Search area center position in format [x,y] or [x,y,z] in which case z is ignored. Accepts [[Position#Introduction|Position2D]] or [[Position3D]] | |p1= center: [[Array]] - Search area center position in format [x,y] or [x,y,z] in which case z is ignored. Accepts [[Position#Introduction|Position2D]] or [[Position#Introduction|Position3D]] | ||
|p2= [radius, maxDistance]: [[Array]] - | |p2= [radius, maxDistance]: [[Array]] - |
Revision as of 16:55, 5 January 2022
Description
- 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
- Groups:
- Positions
Syntax
- Syntax:
- center findEmptyPositionReady [radius, maxDistance]
- Parameters:
- center: Array - Search area center position in format [x,y] or [x,y,z] in which case z is ignored. Accepts Position2D or Position3D
- [radius, maxDistance]: Array -
- radius: Number - distance from the center
- maxDistance: Number - distance from the end of radius
- Return Value:
- Boolean - true when ready
Examples
- Example 1:
- Preload aread within 500m:
_ready = _center findEmptyPositionReady [0, 500];
Additional Information
- See also:
- findEmptyPosition
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note