makes supply boxes ignore weight restrictions for drag and carry

This commit is contained in:
2024-01-28 21:14:22 -08:00
parent 018255a9ab
commit 49fa0c39d2
2 changed files with 7 additions and 3 deletions

View File

@@ -32,9 +32,11 @@ if ( !hasInterface ) exitWith {};
_args params ["_pos", "_target", "_keysSorted"]; _args params ["_pos", "_target", "_keysSorted"];
if ([_target, _typeOptionSelected, _pos] call milsim_fnc_createBox) then { private _box = [_target, _typeOptionSelected, _pos] call milsim_fnc_createBox;
["Resupply Box", format["Created a %1 box", _typeOptionSelected]] call BIS_fnc_curatorHint; if (isNull _box) exitWith {
["Resupply Box", "WARNING: Failed to locate or create box!"] call BIS_fnc_curatorHint;
}; };
["Resupply Box", format["Created a %1 box", _typeOptionSelected]] call BIS_fnc_curatorHint;
}, },
{}, {},
[_pos, _target, _options] [_pos, _target, _options]

View File

@@ -96,4 +96,6 @@ clearWeaponCargoGlobal _box;
[_box,1] call ace_cargo_fnc_setSize; [_box,1] call ace_cargo_fnc_setSize;
true; // ignore weight restrictions for carry/drag
_box setVariable ["ace_ignoreWeightCarry", true, true];
_box;