//==========================================;
//					    ;
//	  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 not (mission) then
{
	if battery_1 then
	{
		bat_1 = false;
		deletemarkerlocal "arty_marker";
		rof_m119_c = 0;
		duration_m119_c = 1;

		hintsilent format ["Releasing %1",bat_menu1];
		sleep 0.5;
		hintsilent format ["Releasing %1.",bat_menu1];
		sleep 0.5;
		hintsilent format ["Releasing %1..",bat_menu1];
		sleep 0.5;
		hintsilent format ["Releasing %1...",bat_menu1];
		sleep 0.5;
		hintsilent format ["Releasing %1..",bat_menu1];
		sleep 0.5;
		hintsilent format ["Releasing %1.",bat_menu1];
		sleep 0.5;
		hintsilent format ["Releasing %1",bat_menu1];
		sleep 0.5;
		hintsilent format ["Releasing %1.",bat_menu1];
		sleep 0.5;
		hintsilent format ["Releasing %1..",bat_menu1];
		sleep 0.5;
		hintsilent format ["%1 Released",bat_menu1];
	};

	if battery_2 then
	{
		bat_2 = false;
		deletemarkerlocal "arty_marker";
		rof_m252_c = 0;
		duration_m252_c = 1;

		hintsilent format ["Releasing %1",bat_menu2];
		sleep 0.5;
		hintsilent format ["Releasing %1.",bat_menu2];
		sleep 0.5;
		hintsilent format ["Releasing %1..",bat_menu2];
		sleep 0.5;
		hintsilent format ["Releasing %1...",bat_menu2];
		sleep 0.5;
		hintsilent format ["Releasing %1..",bat_menu2];
		sleep 0.5;
		hintsilent format ["Releasing %1.",bat_menu2];
		sleep 0.5;
		hintsilent format ["Releasing %1",bat_menu2];
		sleep 0.5;
		hintsilent format ["Releasing %1.",bat_menu2];
		sleep 0.5;
		hintsilent format ["Releasing %1..",bat_menu2];
		sleep 0.5;
		hintsilent format ["%1 Released",bat_menu2];
	};

	if battery_3 then
	{
		bat_3 = false;
		deletemarkerlocal "arty_marker";
		rof_m270_c = 0;
		duration_m270_c = 1;

		hintsilent format ["Releasing %1",bat_menu3];
		sleep 0.5;
		hintsilent format ["Releasing %1.",bat_menu3];
		sleep 0.5;
		hintsilent format ["Releasing %1..",bat_menu3];
		sleep 0.5;
		hintsilent format ["Releasing %1...",bat_menu3];
		sleep 0.5;
		hintsilent format ["Releasing %1..",bat_menu3];
		sleep 0.5;
		hintsilent format ["Releasing %1.",bat_menu3];
		sleep 0.5;
		hintsilent format ["Releasing %1",bat_menu3];
		sleep 0.5;
		hintsilent format ["Releasing %1.",bat_menu3];
		sleep 0.5;
		hintsilent format ["Releasing %1..",bat_menu3];
		sleep 0.5;
		hintsilent format ["%1 Released",bat_menu3];
	};

	battery_1 = false;
	battery_2 = false;
	battery_3 = false;
	open_menu = [] execvm "artillery_ssp\menu\open.sqf";

}
else
{
	hintsilent "Unable, Fire Mission in Progress";
	sleep 3;
	main_menu = [] execvm "artillery_ssp\menu\support.sqf";
};