Fix respawn when letting AI take over playable units (#9145)

This commit is contained in:
BaerMitUmlaut 2023-02-24 06:28:06 +01:00 committed by GitHub
parent 4de8487db0
commit 60cc8fbe88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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];
};
[{