Hello,
Using UPathFollowingComponent I am able to utilize Unreals pathfinding in C++, however I can not find anywhere how to get the actual path distance.

For example, an enemy should not chase the hero if the path is longer than 2000 units (Not the distance to the hero, but the actual path taken).
Any idea how to get the path distance?
Thanks
Bump, surely there must be an easy solution/method I’m missing here?
Googled unrealengine getpathlength
got https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/AI/Navigation/UNavigationSystem/GetPathLength/2/index.html
I’d suggest using that instead of asking the component to build and return the path
Eg if getpathlength < maxdist then use component to generate the path
Ah, I’ve been using ‘Path distance’ for all my googling, when ‘Path length’ was the key. Thanks!