mirror of
https://github.com/IT07/a3_vemf_reloaded.git
synced 2024-08-30 16:52:11 +00:00
Works again
This commit is contained in:
parent
d2decd446e
commit
465c2ebf41
@ -11,28 +11,31 @@
|
|||||||
OBJECT - the headless client
|
OBJECT - the headless client
|
||||||
*/
|
*/
|
||||||
|
|
||||||
private [("_r"),("_n"),("_arr"),("_gl")];
|
private [("_r"),("_n"),("_arr"),("_gl"),("_hc")];
|
||||||
_n = "headLessClientNames" call VEMFr_fnc_config;
|
_n = "headLessClientNames" call VEMFr_fnc_config;
|
||||||
_arr = [];
|
_arr = [];
|
||||||
_gl = uiNamespace getVariable "VEMFrHcLoad";
|
_gl = uiNamespace getVariable "VEMFrHcLoad";
|
||||||
{
|
{
|
||||||
if (((side _x) isEqualTo sideLogic) AND ((name _x) in _n)) then
|
_hc = missionNameSpace getVariable [(_x),"nope"];
|
||||||
|
if not(_hc isEqualTo "nope") then
|
||||||
{
|
{
|
||||||
_arr pushBackUnique _x;
|
if (((typeName _hc) isEqualTo "OBJECT") AND (toLower(typeOf _hc) isEqualTo toLower("HeadlessClient_F"))) then
|
||||||
if not(_x in (_gl select 0)) then
|
|
||||||
{
|
{
|
||||||
_i = (_gl select 0) pushBack _x;
|
_arr pushBackUnique _hc;
|
||||||
(_gl select 1) set [_i, 0];
|
if not(_x in (_gl select 0)) then
|
||||||
|
{
|
||||||
|
_i = (_gl select 0) pushBack _hc;
|
||||||
|
(_gl select 1) set [_i, 0];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
} forEach playableUnits;
|
} forEach _n;
|
||||||
|
|
||||||
_l = 99999;
|
if ((count _arr) > 0) then
|
||||||
{
|
{
|
||||||
if (_x <= _l) then { _l = _x };
|
_l = 99999;
|
||||||
} forEach (_gl select 1);
|
{ if (_x <= _l) then { _l = _x } } forEach (_gl select 1);
|
||||||
|
_r = (_gl select 0) select ((_gl select 1) find _l);
|
||||||
_r = (_gl select 0) select ((_gl select 1) find _l);
|
(_gl select 1) set [(_gl select 0) find _r, _l + 1];
|
||||||
(_gl select 1) set [(_gl select 0) find _r, _l + 1];
|
if not(isNil"_r") then { _r };
|
||||||
|
};
|
||||||
_r
|
|
||||||
|
Loading…
Reference in New Issue
Block a user