Jump to content

Walking Paths


Recommended Posts

Posted

To walk a certain path with walkPath you can use any sort of Position collection, such as an array.

Example of walkPath:

Position[] path = { new Position(0,0,0), new Position(1,1,1) };
getWalking().walkPath(path);

To handle doors and such yourself, you could first check before starting to walk, if you're in a certain area that you'd have to open a door in. If you'd be in such an area; handle the door(s) otherwise walk your path

 

Posted
9 minutes ago, Eagle Scripts said:

To walk a certain path with walkPath you can use any sort of Position collection, such as an array.

Example of walkPath:

Position[] path = { new Position(0,0,0), new Position(1,1,1) };
getWalking().walkPath(path);

To handle doors and such yourself, you could first check before starting to walk, if you're in a certain area that you'd have to open a door in. If you'd be in such an area; handle the door(s) otherwise walk your path

 

Would I have to separate a path that has two separate stairs into separate paths?

for example would this work:
 

if at first stairs
    handle stairs
    walk to second stair area
else if at second stairs
    handle second stairs
else
    walk path

 

Posted (edited)
1 hour ago, Eagle Scripts said:

To walk a certain path with walkPath you can use any sort of Position collection, such as an array.

Example of walkPath:

Position[] path = { new Position(0,0,0), new Position(1,1,1) };
getWalking().walkPath(path);

To handle doors and such yourself, you could first check before starting to walk, if you're in a certain area that you'd have to open a door in. If you'd be in such an area; handle the door(s) otherwise walk your path

 

This doesn't work.

You need this:

Position[] path = { new Position(0,0,0), new Position(1,1,1) };
getWalking().walkPath(Arrays.asList(path));

 

Edited by The Undefeated

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...