// Map script by [UJE]Niek
global Map =
{
	PanzerMap = true,

	Navigation =
	{
		wait =
		{
			navigate = function(_this)
			{
				Util.BotSay(_this.Bot,"!grr");
				timeout = 12;
				while ( timeout > 1 ) {
					_this.Goto(_this.Bot.GetPosition());
					sleep(1);
					timeout -= 1;
				}
			},
		},
		ele1 =
		{
			navigate = function(_this)
			{
				Util.BotSay(_this.Bot,"^7I'm a Ghost!");
				timeout = 12;
				while ( timeout > 1 ) {
					_this.Goto(_this.Bot.GetPosition());
					sleep(1);
					timeout -= 1;
				}
			},
		},
		ele2 =
		{
			navigate = function(_this)
			{
				Util.BotSay(_this.Bot,"A carpet ??");
				timeout = 12;
				while ( timeout > 1 ) {
					_this.Goto(_this.Bot.GetPosition());
					sleep(1);
					timeout -= 1;
				}
			},
		},
		ele3 =
		{
			navigate = function(_this)
			{
				Util.BotSay(_this.Bot,"^1Whaaaaah!");
				timeout = 12;
				while ( timeout > 1 ) {
					_this.Goto(_this.Bot.GetPosition());
					sleep(1);
					timeout -= 1;
				}
			},
		},
	},
};

global OnMapLoad = function()
{
	SetMapGoalProperties("SNIPE.*", { MinCampTime=30, MaxCamptime=50,});

	Util.LimitToTeam( TEAM.AXIS, "SNIPE_axis.*" );
	Util.LimitToTeam( TEAM.ALLIES, "SNIPE_allied.*" );
	Util.MapDebugPrint( "OnMapLoad", true );
};

global OnBotJoin = function(bot)
{
	ETUtil.ChangeToPanzer(bot);
};
