Let setUncon handle AI unconsciousness

This commit is contained in:
KoffeinFlummi 2015-05-01 01:38:16 +02:00
parent 48770f77d2
commit cb82b20464

View File

@ -178,11 +178,7 @@ if (_selectionName == "" and
_damage < 1 and _damage < 1 and
!(_unit getVariable ["ACE_isUnconscious", False] !(_unit getVariable ["ACE_isUnconscious", False]
)) then { )) then {
if (_unit getVariable [QGVAR(allowUnconscious), ([_unit] call EFUNC(common,isPlayer)) or random 1 > 0.3]) then { [_unit, true] call FUNC(setUnconscious);
[_unit, true] call FUNC(setUnconscious);
} else {
_damage = 1;
};
}; };
_damage _damage