Jump to content

Walking Paths


harrypotter

Recommended Posts

Can somebody show me an example of walking a path - without using web walking - that handles doors or stairs?

I can't really find any good examples or tuts on how these are handled for paths containing multiple objects.

An example path would be from lummy cow pen to top floor bank in lummy.

Thank you all in advanced!

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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