blob: 543d68d81af791531eed73d724a6c3e17cfb64bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
Private ['_c','_list','_r','_side','_type','_u'];
_type = _this select 0;
_side = _this select 1;
_list = _this select 2;
_r = [localize 'STR_WF_COMMAND_All'];
_u = [];
{
_c = _x Call GetNamespace;
if !(isNil '_c') then {
if !((_c select QUERYUNITFACTION) in _u) then {
_r = _r + [(_c select QUERYUNITFACTION)];
_u = _u + [(_c select QUERYUNITFACTION)];
};
};
} forEach _list;
[Format["WFBE_%1%2FACTIONS",_side,_type],_r,true] Call SetNamespace;
|