Jump to content

Walking - Not moving sometimes


Recommended Posts

Posted (edited)
if (!Settings.location.getArea().contains(myPosition())) { //If not in woodcutting area
  log("Left area, heading back...");
  targetPosition = Settings.location.getTreePosition(); //Get area centre position
  localWalker.walk(targetPosition, true); //Move to position
  break;
}

Sometimes when I'm walking, the player doesn't stop on the exact target location but nearby.

When this happens the player doesn't want to move anymore.

As you can see in the code sample, I'm catching this however the player doesn't start moving anymore on calling walk.

Edited by lisabe96
Posted
if (!Settings.location.getArea().contains(myPosition())) { //If not in woodcutting area  log("Left area, heading back...");  targetPosition = Settings.location.getTreePosition(); //Get area centre position  localWalker.walk(targetPosition, true); //Move to position  break;}
Sometimes when I'm walking, the player doesn't stop on the exact target location but nearby.

When this happens the player doesn't want to move anymore.

As you can see in the code sample, I'm catching this however the player doesn't start moving anymore on calling walk.

what client version are you using

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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