Isolate Posted March 25, 2017 Posted March 25, 2017 getWalking().walk(Area); getWalking().webWalk(Area);
Polymorphism Posted March 25, 2017 Posted March 25, 2017 Area area = new Area(1,2,3); walking.webWalk(area.getRandomPosition());
sudoinit6 Posted March 25, 2017 Author Posted March 25, 2017 6 minutes ago, Isolate said: getWalking().walk(Area); getWalking().webWalk(Area); Hmm, that's what I use but they seem to go to the exact same spot in each area, maybe I am mistaken. Thanks.
Polymorphism Posted March 25, 2017 Posted March 25, 2017 https://osbot.org/api/org/osbot/rs07/api/map/Area.html#getRandomPosition--
sudoinit6 Posted March 25, 2017 Author Posted March 25, 2017 1 minute ago, Polymorphism said: Area area = new Area(1,2,3); walking.webWalk(area.getRandomPosition()); Aha! That's what I was looking for. Thanks much!
Easy Posted March 25, 2017 Posted March 25, 2017 47 minutes ago, sudoinit6 said: Aha! That's what I was looking for. Thanks much! Be careful, if your area contains tiles that aren't traversable, area.getRandomPosition() will bug out osbot's walkers. 2
Alek Posted March 25, 2017 Posted March 25, 2017 2 hours ago, Easy said: Be careful, if your area contains tiles that aren't traversable, area.getRandomPosition() will bug out osbot's walkers. Wont quite bug it out, but it will just fail. 1