mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Let setUncon handle AI unconsciousness
This commit is contained in:
parent
48770f77d2
commit
cb82b20464
@ -178,11 +178,7 @@ if (_selectionName == "" and
|
||||
_damage < 1 and
|
||||
!(_unit getVariable ["ACE_isUnconscious", False]
|
||||
)) then {
|
||||
if (_unit getVariable [QGVAR(allowUnconscious), ([_unit] call EFUNC(common,isPlayer)) or random 1 > 0.3]) then {
|
||||
[_unit, true] call FUNC(setUnconscious);
|
||||
} else {
|
||||
_damage = 1;
|
||||
};
|
||||
[_unit, true] call FUNC(setUnconscious);
|
||||
};
|
||||
|
||||
_damage
|
||||
|
Loading…
Reference in New Issue
Block a user