var path = new List<Vector3>() {
new Vector3(891.3235, -259.2199, -45, "None"),
new Vector3(881.2866, -271.8759, -45, "None"),
new Vector3(880.6079, -280.9656, -45, "None"),
new Vector3(888.381, -293.3022, -45, "None"),
new Vector3(890.4747, -304.1179, -45, "None"),
};
var min = path[0];
for(int i = 0; i < path.Count; i++)
{
if(ObjectManager.Me.Position.DistanceTo(min) < ObjectManager.Me.Position.DistanceTo(path)) min = path; else if(i > 0) path.Remove(path); }
foreach(var p in path) wManager.Wow.Bot.Tasks.GoToTask.ToPosition(p);
Bot run to 2nd point in the path.Why it don't work? Write please working code for Bot go to min distance in the path.