Skip to content

Commit

Permalink
FIX: full box
Browse files Browse the repository at this point in the history
  • Loading branch information
Vdauphin committed May 8, 2022
1 parent 03b4cfd commit ce766d9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ params [
["_searchLocation", objNull, [objNull]]
];

private _objects = nearestObjects [_searchLocation, ["allVehicles"], 3];
private _objects = nearestObjects [_searchLocation, ["AllVehicles", "ThingX"], 3];

if (_objects isEqualTo []) exitWith {(localize "STR_BTC_HAM_O_COPY_NOOBJECTS") call CBA_fnc_notify};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ params [
["_searchLocation", objNull, [objNull]]
];

private _objects = nearestObjects [_searchLocation, ["allVehicles"], 3];
private _objects = nearestObjects [_searchLocation, ["AllVehicles", "ThingX"], 3];

if (
isNil "_inventory" ||
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,17 @@ _inventory params [
];

{
if (load _object > 1) exitWith {};
_object addMagazineCargoGlobal [_x, (_magazines select 1) select _forEachIndex];
} forEach (_magazines select 0);

{
if (load _object > 1) exitWith {};
_object addWeaponWithAttachmentsCargoGlobal [_x, 1];
} forEach _weapons;

{
if (load _object > 1) exitWith {};
private _containerType = _x select 0;
if (_containerType in _items) then {
_object addItemCargoGlobal [_containerType, 1];
Expand All @@ -60,5 +63,6 @@ _inventory params [
} forEach _everyContainer;

{
if (load _object > 1) exitWith {};
_object addItemCargoGlobal [_x, 1];
} forEach _items;

0 comments on commit ce766d9

Please sign in to comment.