From ce766d987f6abe461fefe5bd47410c4e72a7030f Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Sun, 8 May 2022 13:10:54 +0200 Subject: [PATCH] FIX: full box --- .../core/fnc/log/inventoryCopy.sqf | 2 +- .../core/fnc/log/inventoryPaste.sqf | 2 +- .../core/fnc/log/inventorySet.sqf | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/inventoryCopy.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/inventoryCopy.sqf index 5e94b03f6..d571dd586 100644 --- a/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/inventoryCopy.sqf +++ b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/inventoryCopy.sqf @@ -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}; diff --git a/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/inventoryPaste.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/inventoryPaste.sqf index 0eed6b198..bae9e83d3 100644 --- a/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/inventoryPaste.sqf +++ b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/inventoryPaste.sqf @@ -26,7 +26,7 @@ params [ ["_searchLocation", objNull, [objNull]] ]; -private _objects = nearestObjects [_searchLocation, ["allVehicles"], 3]; +private _objects = nearestObjects [_searchLocation, ["AllVehicles", "ThingX"], 3]; if ( isNil "_inventory" || diff --git a/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/inventorySet.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/inventorySet.sqf index 4155819d5..69e6e7796 100644 --- a/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/inventorySet.sqf +++ b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/inventorySet.sqf @@ -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]; @@ -60,5 +63,6 @@ _inventory params [ } forEach _everyContainer; { + if (load _object > 1) exitWith {}; _object addItemCargoGlobal [_x, 1]; } forEach _items;