botmaker_01 0 Share Posted December 26, 2019 getWalking().getWebPathFinder().addObstacle(new PassableObstacle("Portal", "Use" , new Tile(2040, 5240, 0) // start position of player when interacting with portal , new Tile(2021, 5223, 0) // teleported position , new Tile(2039, 5240, 0))); // position of the object Any ideas why this doesn't work? Tried hopelessly to use different approaches also with getWalking().getAStarPathFinder().addObstacle... but it doesn't seem to work. Also feel free to comment how to implement "Correct" custom web walking on top of the existing one. Link to comment Share on other sites More sharing options...
Nuclear Nezz 1969 Share Posted December 26, 2019 Adding an obstacle to the web doesn't do anything, web finder does not handle obstacles, only the local path finder (aStar/Dij, Dij is only up/down z axis) It doesn't use specific obstacles, just what the obstacle is so it knows that object doesn't actually block your path (wall vs door) botmaker_01 1 Link to comment Share on other sites More sharing options...
botmaker_01 0 Author Share Posted December 26, 2019 1 hour ago, Nuclear Nezz said: Adding an obstacle to the web doesn't do anything, web finder does not handle obstacles, only the local path finder (aStar/Dij, Dij is only up/down z axis) It doesn't use specific obstacles, just what the obstacle is so it knows that object doesn't actually block your path (wall vs door) Thanks, actually I've found your post about adding custom WebNodes, but I still can't manage get it to work. Will update here if I get it working. Also why after I stop the script the added WebNodes are kept in cache? Restart of the client helps, but it's pretty slow process 😕 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now