====== ArmA 2 BIS_fnc_findSafePos ====== [[https://www.pmctactical.org/forum/viewforum.php?f=50|ArmA 2 Forum]], [[:arma2|ArmA 2 Home]], [[arma2:config|ArmA 2 Config]], [[arma2:file_formats|ArmA 2 File Formats]], [[arma2:missions|ArmA 2 Missions]], [[arma2:modeling|ArmA 2 3D Modeling]], [[arma2:scripting|ArmA 2 Scripting]], [[arma2:terrain|ArmA 2 Terrain]], [[arma2:texturing|ArmA 2 Texturing]], [[arma2:tools|ArmA 2 Tools]] How to find safe position with open ground etc. Please read [[arma2:scripting:bis_fnc_spawngroup|BIS_fnc_SpawnGroup]] how to place Functions manager gamelogic and to check if its running and initialized. ^ Parameter ^ Description ^ | 1 | Position | | 2 | Minimum distance | | 3 | Maximum distance | | 4 | Maximum distance from nearest object | | 5| 0 - cant be in water, 1 - ? | | 6 | Terrain gradient (how steep terrain) | | 7 | 0 - shore mode; does not have to be in shore | _newPos = [_pos, 0, 500, 30, 0, 20, 0] call BIS_fnc_findSafePos;