Jump to content

Walking to a specific tile


Tazmania

Recommended Posts

Hi all

I am trying to walk to a specific tile using 

getLocalWalker().walk(myTile);

however this will walk the player to the tile or any one of the surrounding ones. If the player is close (3-4 blocks away) to the position he will not walk at all.

 

How can I walk to THE specific position?

WalkingEvent walkingEvent = new WalkingEvent(position);
walkingEvent.setMinDistanceThreshold(0);
execute(walkingEvent);
Edited by Explv
Link to comment
Share on other sites

Create a walking event to a path of one tile and then set the minimap and min distance to 0 like so:

WalkingEvent walkingPath = new WalkingEvent(PositionName);
walkingPath.setMiniMapDistanceThreshold(0);
walkingPath.setMinDistanceThreshold(0);
execute(walkingPath);

 

This has always worked for me.

 

 

Edited by steve498
Link to comment
Share on other sites

Create a walking event to a path of one tile and then set the minimap and min distance to 0 like so:

WalkingEvent walkingPath = new WalkingEvent(PositionName);
walkingPath.setMiniMapDistanceThreshold(0);
walkingPath.setMinDistanceThreshold(0);
execute(walkingPath);

 

This has always worked for me.

 

Same problem, walking to one of the adjacent tiles and won't walk if he is 3 tiles close to the destination.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...