//==========================================//
//					    //
//	  Do not edit this file		    //
//					    //
//==========================================//


if not isServer exitwith{};

if fire_b1 exitwith
{
	[batteryb1, dispersion_b1] call BIS_ARTY_F_SetDispersion;
	sleep 0.1;
	[battery1, getPosASL arty_target_b1, [mission_b1, ammo_b1, rof_b1, duration_b1]] call BIS_ARTY_F_ExecuteTemplateMission;
	fire_b1 = false;
};


if fire_b2 exitwith
{
	[batteryb2, dispersion_b2] call BIS_ARTY_F_SetDispersion;
	sleep 0.1;
	[battery2, getPosASL arty_target_b2, [mission_b2, ammo_b2, rof_b2, duration_b2]] call BIS_ARTY_F_ExecuteTemplateMission;
	fire_b2 = false;
};



if fire_b3 exitwith
{
	[batteryb3, dispersion_b3] call BIS_ARTY_F_SetDispersion;
	sleep 0.1;
	[battery3, getPosASL arty_target_b3, [mission_b3, ammo_b3, rof_b3, duration_b3]] call BIS_ARTY_F_ExecuteTemplateMission;
	fire_b3 = false;
};