Sgt_HARTMAN reacted to
Stanhope in Randomize AO's spawning
private _nextAO = "";
if (manualAO != "") then { _nextAO = manualAO; };
while {_nextAO == ""} do {
private _testAO = selectRandom allMapMarkers;
private _testAOName = (missionConfigFile >> "Main_Aos" >> "AOs" >> _testAO >> "name") call BIS_fnc_getCfgData;
if (!isNil "_testAOName") then {
if (str _testAOName != "any") then {
if (!(_nextAO in controlledZones)) then {
_nextAO = _testAO;
};
};
};
};
_nextAO
Try that, didn't test it myself though.