Skip to content

Commit

Permalink
Dragging - Fix dragging ai turrets via keybind (#10267)
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror authored Aug 27, 2024
1 parent 3b10396 commit c5fb3d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/dragging/initKeybinds.inc.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -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};
Expand Down

0 comments on commit c5fb3d4

Please sign in to comment.