Fix opening backpack of clone while dragging and patient moved warning

This commit is contained in:
PabstMirror 2024-08-29 01:34:23 -05:00
parent 5ea5330c70
commit 0a6ec071b1
2 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,7 @@ if (isNull _display) then {
if (ACE_player distance _target > MAX_DISTANCE && {vehicle _target != vehicle ACE_player}) exitWith {
[_pfhID] call CBA_fnc_removePerFrameHandler;
QGVAR(RscPatientInfo) cutFadeOut 0.3;
if (((getPosATL _target) # 2) < -9) exitWith {}; // handle dragging corpse/clone
[[ELSTRING(medical,DistanceToFar), _target call EFUNC(common,getName)], 2] call EFUNC(common,displayTextStructured);
};

View File

@ -46,5 +46,6 @@ _unit addAction ["OpenBag", {
{!lockedInventory _backpackContainer} &&
{maxLoad _backpackContainer > 0} &&
{getNumber (_backpackConfig >> "disableInventory") != 1} &&
{(typeOf _target) != QEGVAR(dragging,clone)} &&
{_target setUserActionText [_actionId, format [localize "STR_ACTION_OPEN_BAG", getText (_backpackConfig >> "displayName")]]; true}
}, 2];