I followed Jeremy2’s scripting tutorial and managed to get my script running, but it always walks to the same tile. Is there any method to walk to a random tile in an area?
or you could do Area.getCenter().Randomized() or something, not too sure about this one, it’s been a while.
Everything is written there : JavaDocs
Thanks bud, I’ll give that a try.
For randomizing the specific tile:
Position destination = new Position(1, 1, 1);
For random tile in area:
Area zone = new Area.polygonal(new Position (1, 1,0), new Position (2, 2,0));
Works for me. Stay healthy!