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


if (isNull player) exitwith {};

player removeaction action1;
player removeaction action2;
player removeaction action3;
player removeaction action4;
player removeaction action5;

if battery_1 then
{
	if (weapon1 == "mlrs") then
	{
		duration_b1_c = dyn_dur1;
	}
	else
	{
		duration_b1_c = 15;
	};
	hintsilent "Maximum Duration set";
	main_menu = [] exec "artillery_ssp\menu\support.sqf";
};

if battery_2 then
{
	if (weapon2 == "mlrs") then
	{
		duration_b2_c = dyn_dur2;
	}
	else
	{
		duration_b2_c = 15;
	};
	hintsilent "Maximum Duration set";
	main_menu = [] exec "artillery_ssp\menu\support.sqf";
};

if battery_3 then
{
	if (weapon3 == "mlrs") then
	{
		duration_b3_c = dyn_dur3;
	}
	else
	{
		duration_b3_c = 15;
	};
	hintsilent "Maximum Duration set";
	main_menu = [] exec "artillery_ssp\menu\support.sqf";
};