From 54086bb2eff7c9debad18ddfca64dd7b00e50fef Mon Sep 17 00:00:00 2001 From: BaerMitUmlaut Date: Sat, 4 Apr 2020 01:28:14 +0200 Subject: [PATCH] Fix being stuck dragging when in combat pace (#7617) --- addons/dragging/functions/fnc_dragObject.sqf | 3 +++ addons/dragging/functions/fnc_dropObject.sqf | 3 +++ 2 files changed, 6 insertions(+) diff --git a/addons/dragging/functions/fnc_dragObject.sqf b/addons/dragging/functions/fnc_dragObject.sqf index 347eb857db..ae52838e9b 100644 --- a/addons/dragging/functions/fnc_dragObject.sqf +++ b/addons/dragging/functions/fnc_dragObject.sqf @@ -64,6 +64,9 @@ GVAR(currentHeightChange) = 0; // prevent UAVs from firing private _UAVCrew = _target call EFUNC(common,getVehicleUAVCrew); +// fixes not being able to move when in combat pace +[_unit, "forceWalk", "ACE_dragging", true] call EFUNC(common,statusEffect_set); + if !(_UAVCrew isEqualTo []) then { {_target deleteVehicleCrew _x} count _UAVCrew; _target setVariable [QGVAR(isUAV), true, true]; diff --git a/addons/dragging/functions/fnc_dropObject.sqf b/addons/dragging/functions/fnc_dropObject.sqf index 84bbd90342..4ecc876afd 100644 --- a/addons/dragging/functions/fnc_dropObject.sqf +++ b/addons/dragging/functions/fnc_dropObject.sqf @@ -77,6 +77,9 @@ if (_target getVariable [QGVAR(isUAV), false]) then { createVehicleCrew _target; }; +// fixes not being able to move when in combat pace +[_unit, "forceWalk", "ACE_dragging", false] call EFUNC(common,statusEffect_set); + // reset mass private _mass = _target getVariable [QGVAR(originalMass), 0];