theholynoob 4 Posted April 9, 2020 Can I query a Tile to find out if it is possible to stand on it? ie: Tile next = new Tile(x, y, Z); boolean canStand = next.isValid();
Shy 14 Posted April 9, 2020 You might be able to just use CanReach, but I'm not sure if that would always work as expected for this purpose. https://dreambot.org/javadocs/org/dreambot/api/methods/map/Map.html#canReach-org.dreambot.api.methods.map.Tile- getMap().canReach(aTile); Another way is this https://dreambot.org/javadocs/org/dreambot/api/methods/map/Map.html#getFlag-org.dreambot.api.methods.map.Tile- https://dreambot.org/javadocs/org/dreambot/api/wrappers/map/impl/CollisionMap.html#isBlocked-int- Tile aTile = new Tile(3220,3220); int aTileFlag = getMap().getFlag(aTile); boolean canStand = CollisionMap.isBlocked(aTileFlag);
Recommended Posts
Archived
This topic is now archived and is closed to further replies.