Jump to content

Walking - Not moving sometimes


lisabe96

Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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