findEmptyPositionReady: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(29 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma2 | |game1= arma2 | ||
|version1= 1.00 | |||
|1. | |game2= arma2oa | ||
|version2= 1.50 | |||
| | |game3= tkoh | ||
|version3= 1.00 | |||
| | |game4= arma3 | ||
|version4= 0.50 | |||
| | |gr1= Positions | ||
| | |descr= Preloads area to be used with [[findEmptyPosition]] command and returns [[true]] when area is ready. | ||
The size of the area preloaded is from {{hl|center - radius - maxDistance}} to {{hl|center + radius + maxDistance}} | |||
{{Feature|important|Preloading large areas may take a long time, we are talking minutes. However once preloaded, it stays preloaded even after mission restart.}} | |||
| | |s1= center [[findEmptyPositionReady]] [radius, maxDistance] | ||
| [[ | |p1= center: [[Array]] format [[Position#Introduction|Position2D]] or [[Position#Introduction|Position3D]] - search area center position in format [x,y] or [x,y,z] in which case z is ignored | ||
|p2= radius: [[Number]] - distance from the center | |||
| | |p3= maxDistance: [[Number]] - distance from the end of radius | ||
|r1= [[Boolean]] - [[true]] when ready | |||
| [ | |x1= Preload aread within 500m: | ||
<sqf>_ready = _center findEmptyPositionReady [0, 500];</sqf> | |||
| | |seealso= [[findEmptyPosition]] | ||
}} | }} | ||
Latest revision as of 17:02, 15 August 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 format Position2D or Position3D - search area center position in format [x,y] or [x,y,z] in which case z is ignored
- 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:
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