A quick update. Sometimes just writing the question out helps.
I believe I misunderstood the message, and it was saying that there was no LOS from the end vertex to any path node. On further inspection, the Z coord of the destination vertex had been set to -999999.
This was due to FindBestZ not finding a point above ground. FindClosestZ did the trick. Z-fixup was needed to keep the NPC from bouncing around when it neared the waypoint. I used #loc to get the coords of the waypoint, and that might not agree exactly with the terrain.
|