2015-08-26 19:18:43 +00:00
|
|
|
private ["_pos","_centerPos","_fetchPos"];
|
2015-08-26 13:12:14 +00:00
|
|
|
|
2015-08-26 19:18:43 +00:00
|
|
|
//_centerPos = [getMarkerPos "center",4000,20000,10,0,25,0];
|
|
|
|
_centerPos = [getMarkerPos "center",2000,4000,10,0,25,0];
|
2015-08-26 13:12:14 +00:00
|
|
|
|
2015-08-26 19:18:43 +00:00
|
|
|
_fetchPos = false;
|
|
|
|
|
|
|
|
_int = 1;
|
|
|
|
|
|
|
|
while {!_fetchPos} do {
|
|
|
|
|
|
|
|
sleep 2;
|
2015-08-26 17:17:51 +00:00
|
|
|
|
2015-08-26 19:18:43 +00:00
|
|
|
_pos = _centerPos call BIS_fnc_findSafePos;
|
|
|
|
_int = _int + 1;
|
|
|
|
_fetchPos = true;
|
|
|
|
|
2015-08-26 17:17:51 +00:00
|
|
|
if (_fetchPos) then {
|
|
|
|
diag_log format ["DMS :: Found valid position at: (%1) in (%2) tries!",_pos,_int];
|
|
|
|
};
|
|
|
|
|
|
|
|
// more if exceptions to come
|
2015-08-26 13:12:14 +00:00
|
|
|
|
2015-08-26 19:18:43 +00:00
|
|
|
// water if exception to be added above
|
2015-08-26 18:05:12 +00:00
|
|
|
|
2015-08-26 19:18:43 +00:00
|
|
|
};
|
|
|
|
_pos
|