harrypotter Posted April 2, 2017 Share Posted April 2, 2017 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! Quote Link to comment Share on other sites More sharing options...
Eagle Scripts Posted April 2, 2017 Share Posted April 2, 2017 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 Quote Link to comment Share on other sites More sharing options...
harrypotter Posted April 2, 2017 Author Share Posted April 2, 2017 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 Quote Link to comment Share on other sites More sharing options...
The Undefeated Posted April 2, 2017 Share Posted April 2, 2017 (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 April 2, 2017 by The Undefeated Quote Link to comment Share on other sites More sharing options...
Eagle Scripts Posted April 2, 2017 Share Posted April 2, 2017 35 minutes ago, The Undefeated said: This doesn't work. You need this: Position[] path = { new Position(0,0,0), new Position(1,1,1) }; getWalking().walkPath(Arrays.asList(path)); Yeah sorry I'm on mobile, thats correct Quote Link to comment Share on other sites More sharing options...