# Can I get NavArea info from FindPathSync()

**URL:** <https://forums.unrealengine.com/t/can-i-get-navarea-info-from-findpathsync/484462>\
**Category:** C++\
**Tags:** Navigation, moveto, path-follow, unreal-engine, question, CPP\
**Created:** [June 5, 2021, 6:33pm UTC](https://forums.unrealengine.com/t/can-i-get-navarea-info-from-findpathsync/484462 "2021-06-05T18:33:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Glomby](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Glomby](https://forums.unrealengine.com/u/Glomby)\
**Post date:** [June 5, 2021, 6:33pm UTC](https://forums.unrealengine.com/t/can-i-get-navarea-info-from-findpathsync/484462/1 "2021-06-05T18:33:44Z")

</div>

I am currently working on a custom MoveTo function which is supposed to be able to tell if there is a destoyable object blocking an AIs path.

Those objects (like walls) use a custom NavArea Class and the AI can calculate a path right through them. I don’t want them to walk around them because the AI can destroy those objects if they a crossing their paths.

In the AIController Class the MoveTo function basically works by getting a path and then sending a move request. My idea was to check the path after getting it and checking if the path crosses my NavArea class. If it does I would abort the MoveTo and attack the object instead.

The FNavigationPath struct has a lot in it but I can’t figure out if this is possible. Like there are functions like FNavigationPath::ContainsNode() that sound like what I’m looking for but I think this is for a specific node on the navmesh and not a navarea type I think.

If anyone has an idea how I could do this, that would be very helpful.
