ItsJustMe Posted August 12, 2014 Share Posted August 12, 2014 (edited) You seem to have phased out Pathfinder in the new osbot (or i just cant find it) and also client.getCurrentRegion().getObjects() can someone please tell me the alts to these? And/Or I was told the legacy API is broken?Is this true, if so, will it be fixed? Edited August 12, 2014 by ItsJustMe Link to comment Share on other sites More sharing options...
Mysteryy Posted August 13, 2014 Share Posted August 13, 2014 You seem to have phased out Pathfinder in the new osbot (or i just cant find it) and also client.getCurrentRegion().getObjects() can someone please tell me the alts to these? And/Or I was told the legacy API is broken? Is this true, if so, will it be fixed? Do you mean LocalPathfinder? That is in the api, is uses A* to find a path from A to B in the loaded region. ^_^ Link to comment Share on other sites More sharing options...
ItsJustMe Posted August 13, 2014 Author Share Posted August 13, 2014 Do you mean LocalPathfinder? That is in the api, is uses A* to find a path from A to B in the loaded region. ^_^ oh so they just added the word local too it... (Local path finder seems to work in the old instance) Also still trying to figure out the other one but i guess itll turn up tryingscriptInstance.myPlayer().getPosition().distance(x) Link to comment Share on other sites More sharing options...
Eliot Posted August 13, 2014 Share Posted August 13, 2014 script.getObjects(); I think that exists. Link to comment Share on other sites More sharing options...
ItsJustMe Posted August 13, 2014 Author Share Posted August 13, 2014 script.getObjects();I think that exists. it does, and i think it's what i already used too fix it. thankyou though Link to comment Share on other sites More sharing options...
Joseph Posted August 13, 2014 Share Posted August 13, 2014 You could use the public field objects, or local path finder. If not you could use the public methods getObjects or getLocalPathFinder Link to comment Share on other sites More sharing options...