Dragging - Release ownership when target is too heavy to drag/carry (#9858)

Release ownership when target is too heavy to drag/carry
This commit is contained in:
johnb432 2024-03-18 18:16:34 +01:00 committed by GitHub
parent 3cafac2f67
commit 0856e58ae9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -31,6 +31,9 @@ if !(_target getVariable [QGVAR(ignoreWeightCarry), false]) then {
// Exit if object weight is over global var value // Exit if object weight is over global var value
if (_weight > GETMVAR(ACE_maxWeightCarry,1E11)) exitWith { if (_weight > GETMVAR(ACE_maxWeightCarry,1E11)) exitWith {
// Release claim on object
[objNull, _target, true] call EFUNC(common,claim);
[LLSTRING(UnableToDrag)] call EFUNC(common,displayTextStructured); [LLSTRING(UnableToDrag)] call EFUNC(common,displayTextStructured);
}; };

View File

@ -31,6 +31,9 @@ if !(_target getVariable [QGVAR(ignoreWeightDrag), false]) then {
// Exit if object weight is over global var value // Exit if object weight is over global var value
if (_weight > GETMVAR(ACE_maxWeightDrag,1E11)) exitWith { if (_weight > GETMVAR(ACE_maxWeightDrag,1E11)) exitWith {
// Release claim on object
[objNull, _target, true] call EFUNC(common,claim);
[LLSTRING(UnableToDrag)] call EFUNC(common,displayTextStructured); [LLSTRING(UnableToDrag)] call EFUNC(common,displayTextStructured);
}; };