makes supply boxes ignore weight restrictions for drag and carry
This commit is contained in:
@@ -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]
|
||||||
|
|||||||
@@ -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;
|
||||||
Reference in New Issue
Block a user