Jump to content

canReach from position other than player.


Recommended Posts

Posted
52 minutes ago, Slut said:

I've fiddled for a little bit and can't seem to figure out if it's possible, but I'm trying to check if I can reach a tile from a position that isn't my own. map.canReach seems to only be able to use the player's current position.

Your Sig just made me laugh, then question what the fuck education is....

  • Boge 1
Posted
6 hours ago, Slut said:

I've fiddled for a little bit and can't seem to figure out if it's possible, but I'm trying to check if I can reach a tile from a position that isn't my own. map.canReach seems to only be able to use the player's current position.

just make your own with LocalRouteFinder

 

if path != null return true : false;

  • Like 2
Posted (edited)
6 minutes ago, Slut said:

bump, localPathFinder only works within a certain area, kind've need a method that works over larger distances.

You'll have to make your own web pathfinder for that :boge:

EDIT: Or make a client suggestion for access to the webwalkers underlying pathfinder

Edited by FrostBug
Posted
9 hours ago, Slut said:

bump, localPathFinder only works within a certain area, kind've need a method that works over larger distances.

Tile flags are only available when a region is loaded, these are needed to decide whether or not something is reachable. You could dump the tile flags to work out if something is reachable over a larger area.

  • Like 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...