/////////////////////////////////////////////////////////////////////
// script to load new AA weapons loadout to replace default one
// to activate in init field of unit use: 
// [this] exec "\js_FA18\scripts\FA18F_loadout_AG.sqf";
// created by John_Spartan
////////////////////////////////////////////////////////////////////


_f18 = _this select 0

//remove default loadout weapons and magazines first


_f18 removeWeapon "js_w_fa18_aim9xLaucher" 
_f18 removeWeapon "js_w_fa18_aim120cLaucher" 
_f18 removeWeapon "js_w_fa18_GBU12LGBLaucher" 
_f18 removeWeapon "js_w_fa18_MaverickLauncher" 
_f18 removeWeapon "js_w_fa18_fueltank_holder" 
 

_f18 removeMagazines "js_m_fa18_aim9x_x2" 
_f18 removeMagazines "js_m_fa18_aim120c_x2" 
_f18 removeMagazines "js_m_fa18_aim120c_x4" 
_f18 removeMagazines "js_m_fa18_bombrack_x2" 
_f18 removeMagazines "js_m_fa18_GBU12_x4" 
_f18 removeMagazines "js_m_fa18_Maverick_x4" 
_f18 removeMagazines "js_m_fa18_wing_tank_x2" 
_f18 removeMagazines "js_m_fa18_empty"

//add new weapons for specified loadout

_f18 addWeapon "js_w_fa18_aim9xLaucher" 
_f18 addWeapon "js_w_fa18_MaverickLauncher"
_f18 addWeapon "js_w_fa18_GBU12LGBLaucher" 
_f18 addWeapon "js_w_fa18_aim120cLaucher"

 

//add new magazines in right sequence so the proxies are loaded properly for specified loadout

_f18 addMagazine "js_m_fa18_aim9x_x2" 
_f18 addMagazine "js_m_fa18_aim120c_x2"
_f18 addMagazine "js_m_fa18_bombrack_x2" 
_f18 addMagazine "js_m_fa18_bombrack_x2"  
_f18 addMagazine "js_m_fa18_aim120c_x2"
_f18 addMagazine "js_m_fa18_GBU12_x4"
_f18 addMagazine "js_m_fa18_Maverick_x4"


//selecting the cannon as initial weapon to make sure loadout is displayed correctly
_f18 selectWeapon "js_m_fa18_m61" 

Exit