var target : Transform;
var Crosshairtex : Texture;
function Update()
{
	//Creates an array of gameobjects that have the tag "waypoints"
		var waypoints: GameObject[] = GameObject.FindGameObjectsWithTag("Player");  

	
		for(waypoint in waypoints)
		{
		if( !waypoint.networkView.isMine)
		{
			target = waypoint.transform;
		}
		}
	if(target == null)
	return;

}
function OnGUI()
{
	var screenPos = camera.main.WorldToScreenPoint (target.position);
	GUI.DrawTexture (Rect(screenPos.x - 12,Screen.height - screenPos.y -12,24,24), Crosshairtex);
}