Updated side GVAR

This commit is contained in:
SilentSpike 2015-07-05 00:11:38 +01:00
parent 27610b78e1
commit 83e5309654
2 changed files with 2 additions and 1 deletions

View File

@ -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 {

View File

@ -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