while {true} do {
_loadoutOnSpawn = [
assignedItems player,
primaryWeapon player,
primaryWeaponItems player,
handgunWeapon player,
handgunItems player,
secondaryWeapon player,
secondaryWeaponItems player,
uniform player,
uniformItems player,
vest player,
vestItems player,
backpack player,
backpackItems player,
headgear player,
goggles player
];
player groupChat format["Loadout on spawn: %1",_loadoutOnSpawn]; // this works
waitUntil {!alive player};
_loadoutOnDeath = [
assignedItems player,
primaryWeapon player,
primaryWeaponItems player,
handgunWeapon player,
handgunItems player,
secondaryWeapon player,
secondaryWeaponItems player,
uniform player,
uniformItems player,
vest player,
vestItems player,
backpack player,
backpackItems player,
headgear player,
goggles player
];
player groupChat format["Loadout on death: %1",_loadoutOnDeath]; // this doesn't
};