I'm trying to make a function that will loop BIS_fnc_findSafePos comparing it to coordinates to make sure they do not match to stop the "Novy Sobor" bug with the Mission Systems.
Is there a code snippet out there already? I get an error with the attempt I made.
Here's what I tried:
And this is the error I get:
Apparently getMarkerPos "center" didn't simply return coordinates as I believed it did, so I need a way to get the coordinates of the map center.
Is there a code snippet out there already? I get an error with the attempt I made.
Here's what I tried:
Code:
DZ_FindPos = {
private["_findRun","_pos"];
_findRun = true;
while {_findRun} do {
_pos = [getMarkerPos "center",0,5500,100,0,20,0] call BIS_fnc_findSafePos;
if (!(_pos == (getMarkerPos "center"))) then {
_findRun = false;
};
sleep 2;
};
_pos
};
And this is the error I get:
Code:
19:43:40 Error in expression <0] call BIS_fnc_findSafePos;
if (!(_pos == (getMarkerPos "center"))) then {
_fin>
19:43:40 Error position: <== (getMarkerPos "center"))) then {
_fin>
19:43:40 Error ==: Type Array, expected Number,String,Object,Side,Group,Text,Config entry,Display (dialog),Control,Team member,Task,Location
Apparently getMarkerPos "center" didn't simply return coordinates as I believed it did, so I need a way to get the coordinates of the map center.