weaponsList=[
["1000Rnd_Laser_Cannon_LAAT","Cannon_LAAT",2,[-1],1000],
["4Rnd_LG_Jian","missiles_Jian",8,[-1],4],
["magazine_Missile_rim116_x21","weapon_rim116Launcher",1,[0],21],
["magazine_Missile_rim116_x21","weapon_rim116Launcher",1,[-1],4],
["SmokeLauncherMag","SmokeLauncher",10,[-1,0],2],
["300Rnd_CMFlare_Chaff_Magazine","CMFlareLauncher",10,[-1,0],300],
["400Rnd_Pomehi_Mag","PomehiLauncherXT",10,[-1,0],400],
["10Rnd_FAST_Cannon_TIE","Cannon_TIE_FAST",100,[1,2],10],
["Laserbatteries","Laserdesignator_pilotCamera",1,[-1],1]
];

comment "remove torpedos";
for [{_i=0}, {_i<2}, {_i=_i+1}] do
{
_this removeMagazineTurret ["laat_proton_torpedo" ,[-1]];  
_this removeWeaponTurret["laat_proton_torpedo_launcher", [-1]];
};




comment "adds the weapons";



comment "goes through each weapon";
for [{_i=0}, {_i<(count weaponsList)}, {_i=_i+1}] do
{
itemList = (weaponsList select _i);
itemWeap= (itemList select 1);
itemMag= (itemList select 0);
itemCount= (itemList select 2);
itemSeat= (itemList select 3);
ammoCount=(itemList select 4);

comment "goes through each mag count,aka add magz";
for [{_j=0}, {_j<itemCount}, {_j=_j+1}] do
{
comment "goes through each seat,aka add 1 mag to each seat";
for  [{_k=0}, {_k<(count itemSeat)}, {_k=_k+1}] do
{
_this  addMagazineTurret [itemMag ,[itemSeat select _k],ammoCount];  
_this  addWeaponTurret[itemWeap, [itemSeat select _k]];
};
};

};



comment "gets health";
_this   addAction ["<t color='#00FF00'>Damage Report</t>",
{


hint parseText format["<t color='#0099FF'> Damage status is :%1</t>",((1-(damage (_this  select 0)))*100)];

},[1],0,false,true,""," driver  _target == _this "];


