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"];
if ([_target, _typeOptionSelected, _pos] call milsim_fnc_createBox) then {
["Resupply Box", format["Created a %1 box", _typeOptionSelected]] call BIS_fnc_curatorHint;
private _box = [_target, _typeOptionSelected, _pos] call milsim_fnc_createBox;
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]