From c5fb3d4cb0fb992b12d03b1ed96f84904c855cdb Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Mon, 26 Aug 2024 23:36:29 -0500 Subject: [PATCH] Dragging - Fix dragging ai turrets via keybind (#10267) --- addons/dragging/initKeybinds.inc.sqf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/dragging/initKeybinds.inc.sqf b/addons/dragging/initKeybinds.inc.sqf index a8792f3576..b7c3a2ace0 100644 --- a/addons/dragging/initKeybinds.inc.sqf +++ b/addons/dragging/initKeybinds.inc.sqf @@ -19,6 +19,7 @@ }; private _cursorObject = cursorObject; + if (_cursorObject isKindOf "CaManBase" && {unitIsUAV _cursorObject}) then { _cursorObject = vehicle _cursorObject }; if (isNull _cursorObject || {(_cursorObject distance _player) > 2.6}) exitWith {false}; if !([_player, _cursorObject] call FUNC(canDrag)) exitWith {false}; @@ -48,6 +49,7 @@ }; private _cursorObject = cursorObject; + if (_cursorObject isKindOf "CaManBase" && {unitIsUAV _cursorObject}) then { _cursorObject = vehicle _cursorObject }; if (isNull _cursorObject || {(_cursorObject distance _player) > 2.6}) exitWith {false}; if !([_player, _cursorObject] call FUNC(canCarry)) exitWith {false};