mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix side filtering
This commit is contained in:
parent
13201866bd
commit
2f8432699b
@ -41,17 +41,19 @@ _newUnits = [[],allPlayers,allUnits] select GVAR(filterUnits);
|
|||||||
// Side filter
|
// Side filter
|
||||||
private ["_playerSide","_sides"];
|
private ["_playerSide","_sides"];
|
||||||
_playerSide = side group player;
|
_playerSide = side group player;
|
||||||
_sides = [west,east,resistance,civilian];
|
|
||||||
|
|
||||||
if (GVAR(filterSides) == 0) then {
|
if (GVAR(filterSides) == 0) then {
|
||||||
_sides = [_playerSide];
|
_sides = [_playerSide];
|
||||||
} else {
|
} else {
|
||||||
|
_sides = [west,east,resistance,civilian];
|
||||||
|
if (GVAR(filterSides) == 1) then {
|
||||||
{
|
{
|
||||||
if ((_x getFriend _playerSide) < 0.6) then {
|
if ((_x getFriend _playerSide) < 0.6) then {
|
||||||
_sides - [_x];
|
_sides = _sides - [_x];
|
||||||
};
|
};
|
||||||
} forEach _sides;
|
} forEach _sides;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
// Filter units and append to list
|
// Filter units and append to list
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user