Measure the route to a transition
if (!LokiPoe.IsInGame)
return;
var target = LokiPoe.ObjectManager.GetObjectsByType<AreaTransition>()
.FirstOrDefault(obj => obj.IsTargetable);
if (target != null)
{
var distance = ExilePather.PathDistance(LokiPoe.MyPosition, target.Position);
}A path measurement is not a movement command. Recheck the target before moving.