theholynoob 4 Share 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(); Link to comment Share on other sites More sharing options...
Shy 14 Share 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); Articron and Defiled 2 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