//cheat for goggles for frogman
if ( ((uniform player)=="U_B_Wetsuit") or ((uniform player)=="U_OI_Wetsuit") ) then 
{
	removeGoggles player;
	player addGoggles "G_Diving";
} else {
	removeGoggles player;
	player addGoggles "G_Tactical_Clear";
};

_loadout=[player] execVM "actions\fnc_save_loadout.sqf";

//_loadout=[player] call compile preprocessFileLineNumbers "actions\fnc_save_loadout.sqf";

/*
EGG_EVO_aitems = (assignedItems player);

if !((primaryweapon player)=="") then 
{ 
	EGG_EVO_pgun = (primaryWeapon player);
	EGG_EVO_pgunitems = (primaryWeaponItems player);
};
if !((handgunweapon player)=="") then 
{ 
	EGG_EVO_hgun = (handgunWeapon player);
	EGG_EVO_handgunitems = (handgunItems player);
};
if !((secondaryweapon player)=="") then 
{ 
	EGG_EVO_sgun = (secondaryWeapon player);
	EGG_EVO_sgunitems = (secondaryWeaponItems player);
};
if !((uniform player)=="") then 
{ 
	EGG_EVO_uniform = (uniform player);
	EGG_EVO_uniformitems = (uniformItems player);
//	EGG_EVO_Umags = getMagazineCargo (unitUniform player);
//	EGG_EVO_Uweps = getWeaponCargo (unitUniform player);
};
if !((vest player)=="") then 
{ 
	EGG_EVO_vest = (vest player);
	EGG_EVO_vestitems = (vestItems player);
//	EGG_EVO_Vmags = getMagazineCargo (unitvest player);
//	EGG_EVO_Vweps = getWeaponCargo (unitvest player);
};
if !((backpack player)=="") then 
{ 
	EGG_EVO_backpack = (backpack player);
	EGG_EVO_packitems = (backpackItems player);
//	EGG_EVO_packmags = getMagazineCargo (unitBackpack player);
//	EGG_EVO_packweps = getWeaponCargo (unitBackpack player);
};
//cheat for goggles for frogman
if ( ((uniform player)=="U_B_Wetsuit") or ((uniform player)=="U_OI_Wetsuit") ) then 
{
	removeGoggles player;
	player addGoggles "G_Diving";
} else {
	removeGoggles player;
	player addGoggles "G_Tactical_Clear";
};
if !((headgear player)=="") then 
{ 
	EGG_EVO_headgear = (headgear player);
};
if !((Goggles player)=="") then 
{ 
	EGG_EVO_goggles = (Goggles player);
};
EGG_EVO_pallammo = (magazines player);
EGG_EVO_pweapons = (weapons player);
EGG_EVO_pweapons = EGG_EVO_pweapons +["Throw","Put"];
EGG_EVO_pitems = (items player);
//Arma3 items
*/
