mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
[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:
parent
2feeec0d7f
commit
3be84e946b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user