Posts: 234
Threads: 36
Joined: Apr 2014
Reputation:
0
Hellow, I found a bug recently in the PathFinder plugin,
The same thing happens when I call the PathFinder_FindWay function, in a position that sits below a roof!
Is it possible to check if the player is under a roof?
Posts: 457
Threads: 7
Joined: Jul 2017
I think you should post in PathFinder plugin thread, this place is for SA-MP General Talk only i guess.
Posts: 4,878
Threads: 85
Joined: Jun 2007
Reputation:
0
The pathfinder plugin uses MapAndreas, and MapAndreas only got data for the highest layer, so it doesnt work under roofs or in tunnels.
You can use MapAndreas_FindZ_For2DCoord to check if the player is below the returned height.
Posts: 234
Threads: 36
Joined: Apr 2014
Reputation:
0
I managed to solve using PathFinder_FindWay (npcid, zx, zy, px, py, .maxSteps = 50);
Where with the maxsteps the plugin does not present any bug.