Code Hero Posted October 11, 2017 Share Posted October 11, 2017 I need to walk a path that has multiple doors/ gates/ ladders that need to be opened/climbed. I tried webWalk but it sometimes gets stuck. I want to use walkPath but I have no idea how to handle the obstacles. Any help is appreciated. Quote Link to comment Share on other sites More sharing options...
whipz Posted October 11, 2017 Share Posted October 11, 2017 (edited) Not sure, never used it but maybe getMap().canReach ? if it cant reach an obstacle is in the way So i suggest making a walkingevent with a break condition, using !getMap().canReach etc then when it breaks out search for x obstacle interact with it then start walking event again i guess, theres probs a better way but thats how I would start anyways Edited October 11, 2017 by whipz Quote Link to comment Share on other sites More sharing options...
Apaec Posted October 11, 2017 Share Posted October 11, 2017 WalkPath won't handle obstacles for you; your best bet if you want a reliable route is to split the main path into sub paths and walk those individually, handling obstacles between them manually. Apa 1 Quote Link to comment Share on other sites More sharing options...
whipz Posted October 11, 2017 Share Posted October 11, 2017 12 minutes ago, Apaec said: WalkPath won't handle obstacles for you; your best bet if you want a reliable route is to split the main path into sub paths and walk those individually, handling obstacles between them manually. Apa even with a walkingevent ? with a break condition set as !getMap().canReach ? 0.o Quote Link to comment Share on other sites More sharing options...
Code Hero Posted October 11, 2017 Author Share Posted October 11, 2017 1 hour ago, Apaec said: WalkPath won't handle obstacles for you; your best bet if you want a reliable route is to split the main path into sub paths and walk those individually, handling obstacles between them manually. Apa I feared this will be the answer. Thanks Apa! Quote Link to comment Share on other sites More sharing options...
Antonio Kala Posted October 11, 2017 Share Posted October 11, 2017 Set fixed areas and then interact with the object that's in your path whether it's a door or a ladder, and then check if you are successfully in the new area. 1 Quote Link to comment Share on other sites More sharing options...