[medical_status] Enable user input between death and respawn (#7502)

Fix being unable to use any menus created while dead
This commit is contained in:
Whigital 2020-02-04 12:15:45 +01:00 committed by GitHub
parent 2feeec0d7f
commit 3be84e946b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,4 +38,10 @@ TRACE_3("killer info",_killer,_instigator,_causeOfDeath);
if (_unit isEqualTo (_unit getVariable [QGVAR(killed), objNull])) exitWith {}; // ensure event is only called once
_unit setVariable [QGVAR(killed), _unit];
if (IS_UNCONSCIOUS(_unit)) then {
// Enable user input before respawn, in case mission is using respawnTemplates
["unconscious", false] call EFUNC(common,setDisableUserInputStatus);
};
["ace_killed", [_unit, _causeOfDeath, _killer, _instigator]] call CBA_fnc_globalEvent;