Kristoffer 24 Share Posted February 20, 2015 For some reason else if (player.getTile().distance(new Tile(2532, 3546, 1)) < 2) { returns true even after I climb down the ladder, is it not detecting the plane change or should I do this differently? Link to comment Share on other sites More sharing options...
Botre 27 Share Posted February 20, 2015 For some reason else if (player.getTile().distance(new Tile(2532, 3546, 1)) < 2) { returns true even after I climb down the ladder, is it not detected the plane change or should I do this differently? I'm not sure if planes are accounted for in the distance calculation, I doubt it actually. Just add a plane check Link to comment Share on other sites More sharing options...
Nuclear Nezz 2052 Share Posted February 20, 2015 I'm not sure if planes are accounted for in the distance calculation, I doubt it actually. Just add a plane check Botre is right, we don't account for plane in distance checks. :x I'll put it on my list of things to look at though. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.