Well, thanks for your snippet.
But, I have a bug or I am kinda stupid:
If I try to use this code:
if (walkToLocation(new Position(3101, 3421, 0))) {
walkToLocation(new Position(3098,3456,0));
}
Then, if I'm on position 3101, 3421, 0 then it goes to 3098,3456,0. But, half way from the first waypoint, it's going back to first waypoint.
Best regards,
Hirvi.
EDIT:: My mistake, was so stupid, to see the second post, that was the answer to me.
Thanks for Snippet, It's best IMO so far! ;)