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


if (isNull player) exitwith {};

player removeaction action1;
player removeaction action2;
player removeaction action3;
player removeaction action4;
player removeaction action5;
player removeaction action6;
player removeaction action7;
player removeaction action8;
player removeaction action9;
player removeaction action10;
player removeaction action11;

if battery_1 then
{
	if (weapon1 == "mlrs") then
	{
		action1 = player addaction ["50m", "artillery_ssp\dispersion\dispersion_50.sqf", [], 1, false, false, "", ""];
		action2 = player addaction ["100m", "artillery_ssp\dispersion\dispersion_100.sqf", [], 1, false, false, "", ""];
		action3 = player addaction ["150m", "artillery_ssp\dispersion\dispersion_150.sqf", [], 1, false, false, "", ""];
		action4 = player addaction ["200m", "artillery_ssp\dispersion\dispersion_200.sqf", [], 1, false, false, "", ""];
		action5 = player addaction ["250m", "artillery_ssp\dispersion\dispersion_250.sqf", [], 1, false, false, "", ""];
		action6 = player addaction ["300m", "artillery_ssp\dispersion\dispersion_300.sqf", [], 1, false, false, "", ""];
	};
	if (weapon1 == "m119") then
	{
		action1 = player addaction ["100m", "artillery_ssp\dispersion\dispersion_100.sqf", [], 1, false, false, "", ""];
		action2 = player addaction ["200m", "artillery_ssp\dispersion\dispersion_200.sqf", [], 1, false, false, "", ""];
		action3 = player addaction ["300m", "artillery_ssp\dispersion\dispersion_300.sqf", [], 1, false, false, "", ""];
		//action4 = player addaction ["400m", "artillery_ssp\dispersion\dispersion_400.sqf", [], 1, false, false, "", ""];
		//action5 = player addaction ["500m", "artillery_ssp\dispersion\dispersion_500.sqf", [], 1, false, false, "", ""];

	};
	if (weapon1 == "m252") then
	{
		action1 = player addaction ["50m", "artillery_ssp\dispersion\dispersion_50.sqf", [], 1, false, false, "", ""];
		action2 = player addaction ["100m", "artillery_ssp\dispersion\dispersion_100.sqf", [], 1, false, false, "", ""];
		action3 = player addaction ["150m", "artillery_ssp\dispersion\dispersion_150.sqf", [], 1, false, false, "", ""];
		//action4 = player addaction ["200m", "artillery_ssp\dispersion\dispersion_200.sqf", [], 1, false, false, "", ""];
	};
};


if battery_2 then
{
	if (weapon2 == "mlrs") then
	{
		action1 = player addaction ["50m", "artillery_ssp\dispersion\dispersion_50.sqf", [], 1, false, false, "", ""];
		action2 = player addaction ["100m", "artillery_ssp\dispersion\dispersion_100.sqf", [], 1, false, false, "", ""];
		action3 = player addaction ["150m", "artillery_ssp\dispersion\dispersion_150.sqf", [], 1, false, false, "", ""];
		action4 = player addaction ["200m", "artillery_ssp\dispersion\dispersion_200.sqf", [], 1, false, false, "", ""];
		action5 = player addaction ["250m", "artillery_ssp\dispersion\dispersion_250.sqf", [], 1, false, false, "", ""];
		action6 = player addaction ["300m", "artillery_ssp\dispersion\dispersion_300.sqf", [], 1, false, false, "", ""];
	};
	if (weapon2 == "m119") then
	{
		action1 = player addaction ["100m", "artillery_ssp\dispersion\dispersion_100.sqf", [], 1, false, false, "", ""];
		action2 = player addaction ["200m", "artillery_ssp\dispersion\dispersion_200.sqf", [], 1, false, false, "", ""];
		action3 = player addaction ["300m", "artillery_ssp\dispersion\dispersion_300.sqf", [], 1, false, false, "", ""];
		//action4 = player addaction ["400m", "artillery_ssp\dispersion\dispersion_400.sqf", [], 1, false, false, "", ""];
		//action5 = player addaction ["500m", "artillery_ssp\dispersion\dispersion_500.sqf", [], 1, false, false, "", ""];

	};
	if (weapon2 == "m252") then
	{
		action1 = player addaction ["50m", "artillery_ssp\dispersion\dispersion_50.sqf", [], 1, false, false, "", ""];
		action2 = player addaction ["100m", "artillery_ssp\dispersion\dispersion_100.sqf", [], 1, false, false, "", ""];
		action3 = player addaction ["150m", "artillery_ssp\dispersion\dispersion_150.sqf", [], 1, false, false, "", ""];
		//action4 = player addaction ["200m", "artillery_ssp\dispersion\dispersion_200.sqf", [], 1, false, false, "", ""];
	};
};


if battery_3 then
{
	if (weapon3 == "mlrs") then
	{
		action1 = player addaction ["50m", "artillery_ssp\dispersion\dispersion_50.sqf", [], 1, false, false, "", ""];
		action2 = player addaction ["100m", "artillery_ssp\dispersion\dispersion_100.sqf", [], 1, false, false, "", ""];
		action3 = player addaction ["150m", "artillery_ssp\dispersion\dispersion_150.sqf", [], 1, false, false, "", ""];
		action4 = player addaction ["200m", "artillery_ssp\dispersion\dispersion_200.sqf", [], 1, false, false, "", ""];
		action5 = player addaction ["250m", "artillery_ssp\dispersion\dispersion_250.sqf", [], 1, false, false, "", ""];
		action6 = player addaction ["300m", "artillery_ssp\dispersion\dispersion_300.sqf", [], 1, false, false, "", ""];
	};
	if (weapon3 == "m119") then
	{
		action1 = player addaction ["100m", "artillery_ssp\dispersion\dispersion_100.sqf", [], 1, false, false, "", ""];
		action2 = player addaction ["200m", "artillery_ssp\dispersion\dispersion_200.sqf", [], 1, false, false, "", ""];
		action3 = player addaction ["300m", "artillery_ssp\dispersion\dispersion_300.sqf", [], 1, false, false, "", ""];
		//action4 = player addaction ["400m", "artillery_ssp\dispersion\dispersion_400.sqf", [], 1, false, false, "", ""];
		//action5 = player addaction ["500m", "artillery_ssp\dispersion\dispersion_500.sqf", [], 1, false, false, "", ""];

	};
	if (weapon3 == "m252") then
	{
		action1 = player addaction ["50m", "artillery_ssp\dispersion\dispersion_50.sqf", [], 1, false, false, "", ""];
		action2 = player addaction ["100m", "artillery_ssp\dispersion\dispersion_100.sqf", [], 1, false, false, "", ""];
		action3 = player addaction ["150m", "artillery_ssp\dispersion\dispersion_150.sqf", [], 1, false, false, "", ""];
		//action4 = player addaction ["200m", "artillery_ssp\dispersion\dispersion_200.sqf", [], 1, false, false, "", ""];
	};
};


action7 = player addaction ["Back", "artillery_ssp\menu\support.sqf", [], 1, false, true, "", ""];