Only force enable input when player is killed (#7510)

This commit is contained in:
SilentSpike
2020-02-05 23:09:58 +00:00
committed by GitHub
parent cdf02f629e
commit d1c03cec1a

View File

@ -39,7 +39,7 @@ 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 {
if (_unit == player) then {
// Enable user input before respawn, in case mission is using respawnTemplates
["unconscious", false] call EFUNC(common,setDisableUserInputStatus);
};