# Nav Link Proxy not setting custom NavArea Flag

**URL:** <https://forums.unrealengine.com/t/nav-link-proxy-not-setting-custom-navarea-flag/312079>\
**Category:** World Creation\
**Tags:** pathfinding, aicontroller, unreal-engine, navmesh, question\
**Created:** [March 22, 2015, 3:08am UTC](https://forums.unrealengine.com/t/nav-link-proxy-not-setting-custom-navarea-flag/312079 "2015-03-22T03:08:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_4b90fa9e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4b90fa9e](https://forums.unrealengine.com/u/anonymous_user_4b90fa9e)\
**Post date:** [March 22, 2015, 3:08am UTC](https://forums.unrealengine.com/t/nav-link-proxy-not-setting-custom-navarea-flag/312079/1 "2015-03-22T03:08:28Z")

</div>

Hey everyone,

I went through the tutorial on making an AI Jump and couldn’t get the nav link proxy to set the flag correctly for some odd reason. I don’t get any compile errors but when I debug out a message the

```
if(FNavAreaHelper::HasJumpFlag(SegmentStart))

```

is never true when my AI walks into the Nav Link Proxy with the Nav Area on the Point Link set to NavArea\_Jump.

I triple checked everything from the tutorial and cant see anything different then what I am doing.

I saw a warning saying that said

```
WARNING - PATHS MAY NOT BE VALID

```

So then set the Navigation Mesh `Build on Runtime` option to true , got rid of that warning but then I see this warning when playing the game a bunch.

```
"FRecastTileGenerator: Trying to use undefined area class while defining Off-Mesh links! (NavArea_Jump)"

```

Not quite sure what that means. Any help would be greatly appreciated , would love to get this working 🙂

Thanks!

Tutorial I used was from here. [http://unreal-ai-tutorial.info/index.php/8-tutorial-cpp/3-making-ai-jump-as-part-of-path-following](http://unreal-ai-tutorial.info/index.php/8-tutorial-cpp/3-making-ai-jump-as-part-of-path-following)

using 4.7.2

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4b90fa9e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4b90fa9e](https://forums.unrealengine.com/u/anonymous_user_4b90fa9e)\
**Post date:** [March 25, 2015, 2:44am UTC](https://forums.unrealengine.com/t/nav-link-proxy-not-setting-custom-navarea-flag/312079/2 "2015-03-25T02:44:20Z")

</div>

I got the NavArea\_Jump to work but only in a Nav Modifier Volume , but the Nav Link Proxy still doesn’t work. Leading me to think I either set the Nav Link Proxy up wrong but it seems correct. How does the Nav Link Proxy work in terms of overlapping the actor?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9026aeba](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9026aeba](https://forums.unrealengine.com/u/anonymous_user_9026aeba)\
**Post date:** [October 2, 2015, 11:58pm UTC](https://forums.unrealengine.com/t/nav-link-proxy-not-setting-custom-navarea-flag/312079/3 "2015-10-02T23:58:54Z")

</div>

That tutorial is gone now…what the heck? I followed the advice in this thread from MieszkoZ [NavLink and making AI jump? - C++ - Epic Developer Community Forums](https://forums.unrealengine.com/showthread.php?3512-NavLink-and-making-AI-jump), and I’m getting the same thing you did.

So I guess I have to switch to Nav Modifier Volume??

Does anyone know if this is supposed to be working properly?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_66a0fcb6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_66a0fcb6](https://forums.unrealengine.com/u/anonymous_user_66a0fcb6)\
**Post date:** [October 30, 2015, 11:27am UTC](https://forums.unrealengine.com/t/nav-link-proxy-not-setting-custom-navarea-flag/312079/4 "2015-10-30T11:27:30Z")

</div>

Any updates on this? It works 50% of the time. Usually if I close the editor, rebuild my C++ code then go back to the Editor it works fine, but it’s not a really great solution. Paging Mr. MieszkoZ 🙂

---

<div class="post-metadata">

**Author:** ![olee92](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@olee92](https://forums.unrealengine.com/u/olee92)\
**Post date:** [November 26, 2015, 5:40pm UTC](https://forums.unrealengine.com/t/nav-link-proxy-not-setting-custom-navarea-flag/312079/5 "2015-11-26T17:40:56Z")

</div>

Same problem here!  
Debugging the code the AI controller logs always 0 for the area flags once it reaches the nav links!  
Even if I use one of the already existing links like obstacle or low-height!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_66a0fcb6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_66a0fcb6](https://forums.unrealengine.com/u/anonymous_user_66a0fcb6)\
**Post date:** [November 27, 2015, 3:54am UTC](https://forums.unrealengine.com/t/nav-link-proxy-not-setting-custom-navarea-flag/312079/6 "2015-11-27T03:54:16Z")

</div>

Have you tried switching to 4.10? They fixed a bug where the nav mesh was being rebuilt all the time. As soon as I switched to 4.10 the bug disappeared.

---

<div class="post-metadata">

**Author:** ![olee92](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@olee92](https://forums.unrealengine.com/u/olee92)\
**Post date:** [November 27, 2015, 11:15am UTC](https://forums.unrealengine.com/t/nav-link-proxy-not-setting-custom-navarea-flag/312079/7 "2015-11-27T11:15:31Z")

</div>

The problem happens with 4.10.  
I investigated it further and noticed that the bug actually only happens with hot reloading.  
Normally the custom NavArea class (old version) should be unregistered when hot reloading and re-registered after that.  
However somehow it first registers the new one and then unregisters the old one. This would make it necessary to restart the editor after compiling each time.

I managed to circumvent the problem for now by overriding FinishDestroy() in my custom NavArea class with the following - slightly changed - code.

```
void UNavArea_Jump::FinishDestroy()
{
	if (HasAnyFlags(RF_ClassDefaultObject)
#if WITH_HOT_RELOAD
		&& !GIsHotReload
#endif // WITH_HOT_RELOAD
		)
	{
		UE_LOG(LogTemp, Error, TEXT("Did not unregister %s, because of bug in UE4"), *GetClass()->GetName());
		// UNavigationSystem::RequestAreaUnregistering(GetClass());
	}
	UObject::FinishDestroy();
}

```

**[I reported this as a bug here](https://answers.unrealengine.com/questions/339709/bug-when-hot-reloading-custom-navarea-classes.html)**

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_00f905481](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_00f905481](https://forums.unrealengine.com/u/anonymous_user_00f905481)\
**Post date:** [November 4, 2016, 4:08pm UTC](https://forums.unrealengine.com/t/nav-link-proxy-not-setting-custom-navarea-flag/312079/8 "2016-11-04T16:08:59Z")

</div>

Did anyone solve this problem?
