Close dialogs when falling unconscious.

This commit is contained in:
KoffeinFlummi 2015-03-17 08:03:11 +01:00
parent 8a3e3d4b52
commit b470276f7f

View File

@ -35,6 +35,12 @@ if (!local _unit) exitwith {
_unit setvariable ["ACE_isUnconscious", true, true];
_unit setUnconscious true;
// @todo: mute player?
if (_unit == ACE_player) then {
if (visibleMap) then {openMap false};
closeDialog 0;
};
// If a unit has the launcher out, it will sometimes start selecting the primairy weapon while unconscious,
// therefor we force it to select the primairy weapon before going unconscious
if ((vehicle _unit) isKindOf "StaticWeapon") then {