Added unconscious state check

This commit is contained in:
Glowbal 2015-04-17 21:28:47 +02:00
parent 008c36ac76
commit fa7bb5f9c6

View File

@ -23,7 +23,7 @@ if (_local) then {
[_unit, true] call FUNC(addToInjuredCollection);
};
if (count (_unit getvariable [QGVAR(unconsciousArguments), []]) >= 7) then {
if ((_unit getvariable ["ACE_isUnconscious",false]) && {count (_unit getvariable [QGVAR(unconsciousArguments), []]) >= 7}) then {
private "_arguments";
_arguments = (_unit getvariable [QGVAR(unconsciousArguments), []]);
_arguments set [ 3, time];