Check if actor is reachable

How can i check is path to actor is reachable? I tried almost everything i found. “Is parial” don’t work, “Is valid” too. Here i’m asking you.

FindPathToActorSynchronously

Try that node, note that you will need an Navmesh Bounds Volume.

Also this returns a NavagationPath, which you can pull the Path Points array out from it. So if you check the last index of that array against the Actors current location and if they match then the Actor is reachable, otherwise its not.

This can be prone to accuracy issues though so be careful.

1 Like

Did @DevilsD solve your issue?

Did you manage to find an solution to your question?

If so could you please mark the answer as correct if that was what you were looking for or post the correct answer yourself so that this ticket can be closed.

Thank you.

The below image is what I’m using to detect that a path is valid before ordering a pawn to move there. The Vector==Vector node gives an entry for a float that you can set for how tolerant the comparison can be for it to succeed. I set mine to 200 which seems to work fine although you can increase or decrease it for your needs.

Can you explain why you check the Path point for == 200? I see your print string but to not understand why 200 is a valid path point on last index and !=200 is not. Any explanation would be nice.

You could test the pathfinding using the Environment Query System.