diff --git a/addons/circulation/functions/fnc_treatment.sqf b/addons/circulation/functions/fnc_treatment.sqf index 182f64781..0f7c7ede3 100644 --- a/addons/circulation/functions/fnc_treatment.sqf +++ b/addons/circulation/functions/fnc_treatment.sqf @@ -55,19 +55,21 @@ private _userAndItem = if (GET_NUMBER_ENTRY(_config >> "consumeItem") == 1) then _userAndItem params ["_itemUser", "_usedItem"]; // Patient Animation Added from Old Ace -private _patientAnim = getText (_config >> "animationPatient"); -if (_patient getVariable ["ACE_isUnconscious", false]) then { - if !(animationState _patient in (getArray (_config >> "animationPatientUnconsciousExcludeOn"))) then { - _patientAnim = getText (_config >> "animationPatientUnconscious"); - }; -}; - -if (_medic != _patient && {vehicle _patient == _patient} && {_patientAnim != ""}) then { - if (_patient getVariable ["ACE_isUnconscious", false]) then { - [_patient, _patientAnim, 2] call ace_common_fnc_doAnimation; - } else { - [_patient, _patientAnim, 1] call ace_common_fnc_doAnimation; - }; +if (alive _patient) then { + private _patientAnim = getText (_config >> "animationPatient"); + if (_patient getVariable ["ACE_isUnconscious", false]) then { + if !(animationState _patient in (getArray (_config >> "animationPatientUnconsciousExcludeOn"))) then { + _patientAnim = getText (_config >> "animationPatientUnconscious"); + }; + }; + + if (_medic != _patient && {vehicle _patient == _patient} && {_patientAnim != ""}) then { + if (_patient getVariable ["ACE_isUnconscious", false]) then { + [_patient, _patientAnim, 2] call ace_common_fnc_doAnimation; + } else { + [_patient, _patientAnim, 1] call ace_common_fnc_doAnimation; + }; + }; }; //Old Ace Ending here