Difference between revisions of "isFlatEmpty"
From Bohemia Interactive Community
Str_bi_wiki (talk | contribs) m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
|||
Line 45: | Line 45: | ||
<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 ! | ||
+ | |||
+ | <dd class="notedate">Posted on april 15, 2013 - 20:12 (UTC) | ||
+ | <dt class="note">'''[[User:HELLinG3R|HELLinG3R]]''' | ||
+ | <dd class="note">isFlatEmpty returns an array holding a valid position or an empty array the check failed. | ||
<!-- Note Section END --> | <!-- Note Section END --> | ||
</dl> | </dl> | ||
+ | |||
+ | |||
<h3 style='display:none'>Bottom Section</h3> | <h3 style='display:none'>Bottom Section</h3> |
Revision as of 21:12, 15 April 2013
Click on the images for descriptions
Introduced in
- Game:
- Arma 2
- Version:
- 1.00
Description
- Description:
- Check if given area is flat and empty.
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
- Multiplayer:
- -
- See also:
- selectBestPlacesfindEmptyPosition
Notes
Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To
Add New Note | How To
Notes
- Posted on september 12, 2010 - 12:09 (CEST)
- Lou Montana
- The returned pos is ASL. Use setPosASL or fly !
- Posted on april 15, 2013 - 20:12 (UTC)
- HELLinG3R
- isFlatEmpty returns an array holding a valid position or an empty array the check failed.