Skip to content

Commit

Permalink
Dragging - Release ownership when target is too heavy to drag/carry (#…
Browse files Browse the repository at this point in the history
…9858)

Release ownership when target is too heavy to drag/carry
  • Loading branch information
johnb432 authored Mar 18, 2024
1 parent 3cafac2 commit 0856e58
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions addons/dragging/functions/fnc_startCarryLocal.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ if !(_target getVariable [QGVAR(ignoreWeightCarry), false]) then {

// Exit if object weight is over global var value
if (_weight > GETMVAR(ACE_maxWeightCarry,1E11)) exitWith {
// Release claim on object
[objNull, _target, true] call EFUNC(common,claim);

[LLSTRING(UnableToDrag)] call EFUNC(common,displayTextStructured);
};

Expand Down
3 changes: 3 additions & 0 deletions addons/dragging/functions/fnc_startDragLocal.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ if !(_target getVariable [QGVAR(ignoreWeightDrag), false]) then {

// Exit if object weight is over global var value
if (_weight > GETMVAR(ACE_maxWeightDrag,1E11)) exitWith {
// Release claim on object
[objNull, _target, true] call EFUNC(common,claim);

[LLSTRING(UnableToDrag)] call EFUNC(common,displayTextStructured);
};

Expand Down

0 comments on commit 0856e58

Please sign in to comment.