mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Update EPOCH_server_save_vehicle.sqf
Unpack Backpacks / Vests / Uniforms. Otherwise the Inventory will get lost
This commit is contained in:
parent
760d2c2c2a
commit
c411e7ac40
@ -34,6 +34,18 @@ if (!isNull _vehicle) then {
|
|||||||
if (isNil "_magsAmmoCargo") then {
|
if (isNil "_magsAmmoCargo") then {
|
||||||
_magsAmmoCargo = [];
|
_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
|
// minimize magazine ammo cargo
|
||||||
_magsAmmoCargoMinimized = [[],[]];
|
_magsAmmoCargoMinimized = [[],[]];
|
||||||
|
Loading…
Reference in New Issue
Block a user