mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
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:
parent
3cafac2f67
commit
0856e58ae9
@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user