isFlatEmpty: Difference between revisions
Jump to navigation
Jump to search
m (Text replace - "</dt>" to "") |
m (Text replace - "</dd>" to "") |
||
Line 42: | Line 42: | ||
<dl class='command_description'> | <dl class='command_description'> | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
<dd class="notedate">Posted on september 12, 2010 - 12:09 (CEST) | <dd class="notedate">Posted on september 12, 2010 - 12:09 (CEST) | ||
<dt class="note">'''[[User:Lou Montana|Lou Montana]]''' | <dt class="note">'''[[User:Lou Montana|Lou Montana]]''' | ||
<dd class="note">The returned pos is '''ASL'''. Use [[setPosASL]] or fly ! | <dd class="note">The returned pos is '''ASL'''. Use [[setPosASL]] or fly ! | ||
<!-- Note Section END --> | <!-- Note Section END --> | ||
</dl> | </dl> |
Revision as of 13:35, 21 October 2011
Description
- Description:
- Check if given area is flat and empty.
- Groups:
- Uncategorised
Syntax
- Syntax:
- position isFlatEmpty [float minDistance,float precizePos,float maxGradient,float gradientRadius,float onWater,bool onShore,object skipobj]
- Parameters:
- position: Array -
- [float minDistance,float precizePos,float maxGradient,float gradientRadius,float onWater,bool onShore,object skipobj]: Array -
- Return Value:
- Array
Examples
- Example 1:
_isFlat = (position _preview) isflatempty [ (sizeof typeof _preview) / 2, //--- Minimal distance from another object 0, //--- If 0, just check position. If >0, select new one 0.7, //--- Max gradient (sizeof typeof _preview), //--- Gradient area 0, //--- 0 for restricted water, 2 for required water, false, //--- True if some water can be in 25m radius _preview //--- Ignored object ];
Additional Information
- See also:
- selectBestPlacesfindEmptyPosition
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
Notes
- Posted on september 12, 2010 - 12:09 (CEST)
- Lou Montana
- The returned pos is ASL. Use setPosASL or fly !