check if the player is under a roof -
RDM - 31.07.2017
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?
Re: check if the player is under a roof -
Xeon™ - 31.07.2017
I think you should post in PathFinder plugin thread, this place is for SA-MP General Talk only i guess.
Re: check if the player is under a roof -
Mauzen - 31.07.2017
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.
Re: check if the player is under a roof -
RDM - 31.07.2017
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.