nCH
-
Posts
6 -
Joined
-
Last visited
Posts posted by nCH
-
-
its use local pathfinders .
LocalPath<Tile> test2 = Walking.getDijPathFinder().calculate(start, finish); java.util.Map<Tile,PathObstacle> testpo = test2.obstacles(); java.util.Map<Tile,PathObstacle> testpo = test2.obstacles(); MethodProvider.log("testpo size + " + testpo.size() ); for(java.util.Map.Entry item : testpo.entrySet()){ MethodProvider.log("testpo tile + " + item.getKey()); PathObstacle potest = testpo.get(item.getKey()); MethodProvider.log("potest getName() + " + potest.getName()); MethodProvider.log("potest getAction() + " + potest.getAction()); }
Quote16:01:29: [SCRIPT] testpo tile + (3205, 3229, 1)
16:01:29: [SCRIPT] potest getName() + Staircase
16:01:29: [SCRIPT] potest getAction() + Climb-up
16:01:29: [SCRIPT] testpo tile + (3205, 3229, 0)
16:01:29: [SCRIPT] potest getName() + Staircase
16:01:29: [SCRIPT] potest getAction() + Climb-up
16:01:29: [SCRIPT] test + 11 -
What is the maximum distance for found a localpath to Tile ?
-
On 5/8/2021 at 11:41 PM, Pandemic said:
At this time you can't disable the retry logic with any entity interactions, however you could do a "dumb" interact like this and react however you'd prefer:
GameObject rock = GameObjects.closest("Rocks"); PointDestination pointDestination = new PointDestination(rock.getClickablePoint()); InteractionEvent interactionEvent = new InteractionEvent(pointDestination); if (interactionEvent.interact("Mine")) { // Successfully interacted with a rock } else { // Failed to choose that action at the given point, move / rotate / etc. }
It's a bit more verbose, and it wouldn't actually ensure that the entity at the point it interacts with is the exact same entity, but I imagine that'd be pretty rare.
Hope that helps!
"etClickablePoint()" its some random point on Object?
-
Is it safe to use the standard Web walking? in terms of antiban.
Localpath max range
in Support
Posted
i mean max distance when i can use local pathfinders.