check if the player is under a roof
#1

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?
Reply
#2

I think you should post in PathFinder plugin thread, this place is for SA-MP General Talk only i guess.
Reply
#3

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.
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)