From 60cc8fbe88be2e546a78fe7e42beeb13228c8cf9 Mon Sep 17 00:00:00 2001 From: BaerMitUmlaut Date: Fri, 24 Feb 2023 06:28:06 +0100 Subject: [PATCH] Fix respawn when letting AI take over playable units (#9145) --- addons/medical_status/functions/fnc_initUnit.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/medical_status/functions/fnc_initUnit.sqf b/addons/medical_status/functions/fnc_initUnit.sqf index 1b6c283664..56ab8498cd 100644 --- a/addons/medical_status/functions/fnc_initUnit.sqf +++ b/addons/medical_status/functions/fnc_initUnit.sqf @@ -74,10 +74,10 @@ if (_isRespawn) then { _unit setVariable [VAR_MEDICATIONS, [], true]; // Unconscious spontanious wake up chance - _unit setVariable [QEGVAR(medical,lastWakeUpCheck), nil]; + _unit setVariable [QEGVAR(medical,lastWakeUpCheck), nil, true]; // Cause of death - _unit setVariable [QEGVAR(medical,causeOfDeath), nil]; + _unit setVariable [QEGVAR(medical,causeOfDeath), nil, true]; }; [{