Update EPOCH_server_save_vehicle.sqf

Unpack Backpacks / Vests / Uniforms. Otherwise the Inventory will get lost
This commit is contained in:
He-Man 2016-07-07 17:44:58 +02:00 committed by GitHub
parent 760d2c2c2a
commit c411e7ac40

View File

@ -34,6 +34,18 @@ if (!isNull _vehicle) then {
if (isNil "_magsAmmoCargo") then {
_magsAmmoCargo = [];
};
{
_cargo = _x select 1;
_magsAmmoCargox = magazinesAmmoCargo _cargo;
{
_magsAmmoCargo pushback _x;
} foreach _magsAmmoCargox;
_wepsItemsCargox = weaponsItemsCargo _cargo;
{
_wepsItemsCargo pushback _x;
} foreach _wepsItemsCargox;
} foreach everycontainer _vehicle;
// minimize magazine ammo cargo
_magsAmmoCargoMinimized = [[],[]];