mirror of
https://github.com/Defent/DMS_Exile.git
synced 2024-08-30 16:52:12 +00:00
Removed tag
This commit is contained in:
parent
9cb6af4eb3
commit
8099f74a35
@ -1,32 +1,31 @@
|
||||
DMS_findSafePos = {
|
||||
if(isServer) then {
|
||||
private ["_pos","_centerPos","_fetchPos"];
|
||||
|
||||
//_centerPos = [getMarkerPos "center",4000,20000,10,0,25,0];
|
||||
_centerPos = [getMarkerPos "center",2000,4000,10,0,25,0];
|
||||
|
||||
_fetchPos = false;
|
||||
|
||||
_int = 1;
|
||||
|
||||
|
||||
while {!_fetchPos} do {
|
||||
|
||||
sleep 2;
|
||||
|
||||
_pos = _centerPos call BIS_fnc_findSafePos;
|
||||
_int = _int + 1;
|
||||
_fetchPos = true;
|
||||
|
||||
if (_fetchPos) then {
|
||||
diag_log format ["DMS :: Found valid position at: (%1) in (%2) tries!",_pos,_int];
|
||||
};
|
||||
if(isServer) then {
|
||||
private ["_pos","_centerPos","_fetchPos"];
|
||||
|
||||
// more if exceptions to come
|
||||
//_centerPos = [getMarkerPos "center",4000,20000,10,0,25,0];
|
||||
_centerPos = [getMarkerPos "center",2000,4000,10,0,25,0];
|
||||
|
||||
_fetchPos = false;
|
||||
|
||||
_int = 1;
|
||||
|
||||
|
||||
while {!_fetchPos} do {
|
||||
|
||||
sleep 2;
|
||||
|
||||
// water if exception to be added above
|
||||
|
||||
};
|
||||
_pos = _centerPos call BIS_fnc_findSafePos;
|
||||
_int = _int + 1;
|
||||
_fetchPos = true;
|
||||
|
||||
if (_fetchPos) then {
|
||||
diag_log format ["DMS :: Found valid position at: (%1) in (%2) tries!",_pos,_int];
|
||||
};
|
||||
|
||||
// more if exceptions to come
|
||||
|
||||
// water if exception to be added above
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user