mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Updated side GVAR
This commit is contained in:
parent
27610b78e1
commit
83e5309654
@ -16,6 +16,7 @@
|
||||
diag_log text format ["[ACE_Spectator] ERROR: %1", _errorMsg];
|
||||
};
|
||||
|
||||
// Handle end mission setting
|
||||
if (GVAR(endMission) && isServer) then {
|
||||
[{
|
||||
if ({(isPlayer _x) && (alive _x) && !(_x getVariable [QGVAR(isSpectator), false])} count allUnits == 0) then {
|
||||
|
@ -26,4 +26,4 @@ _unit = _this select 0;
|
||||
//{!isObjectHidden _unit} && // Not hidden (currently dev branch only)
|
||||
{!(_unit getVariable [QGVAR(isSpectator), false])} && // Who watches the watchmen?
|
||||
{(GVAR(AI) || (isPlayer _unit))} && // Only allow AI when setting is enabled
|
||||
{!GVAR(limitSide) || (([_unit] call FUNC(unitSide)) == GVAR(playerSide))} // Only allow units of same side when setting is enabled
|
||||
{!GVAR(limitSide) || (([_unit] call FUNC(unitSide)) == GVAR(cachedSide))} // Only allow units of same side when setting is enabled
|
||||
|
Loading…
Reference in New Issue
Block a user