Difference between revisions of "isFlatEmpty"

From Bohemia Interactive Community
Jump to navigation Jump to search
(add. classification)
(Added coin_interface.sqf (ca\modules\CoIn\data\scripts) example.)
Line 21: Line 21:
  
  
|x1= <code>(example)</code>|= EXAMPLE1  
+
|x1= <pre>_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
 +
];</pre>|= EXAMPLE1  
  
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________

Revision as of 16:40, 13 July 2009

Introduced with Arma 2 version 1.00
  

Click on the images for descriptions

Introduced in

Game:
Arma 2
Version:
1.00

Description

Description:
Chek 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:
See also needed

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

Notes

Bottom Section