this.GoalType = "ARTILLERY_S";
this.Version = 1;
this.DefaultPriority = 0.8;


//////////////////////////////////////////////////////////////////////////

this.InitNewGoal = function()
{
	this.SetPosition(this.GetPosition() + Vec3(0,0,1));
};

//////////////////////////////////////////////////////////////////////////

this.UpgradeVersion = function(Props)
{
	// version 0 is string,string key/values from the old waypoint format
	if(Props.Version==0)
	{
		// Version 1 Schema, upgrade from waypoint format
		Props.Version = 1;

		this.SetPosition(this.GetPosition() + Util.WaypointGoalOffset);
	}
	else if(Props.Version == this.Version)
	{

	}
};

//////////////////////////////////////////////////////////////////////////

this.Render = function()
{
	offset2 = Vec3(0,0,64);

	while(this.RenderGoal == true)
	{
		goalBasePos = this.GetPosition();
		goalPos = goalBasePos + offset2;

		this.RenderDefault();

		if(this.IsDisabled())
		{
			DrawLine(goalPos,goalBasePos,COLOR.RED,2);
		}
		else
		{
			DrawLine(goalPos,goalBasePos,COLOR.GREEN,2);
		}

		sleep(2);
	}
};
