I am currently having an issue where every time my player dies the game crashes and in the debugging logs it says that the : NavArea->K2_GetRandomReachablePointInRadius(GetWorld(), GetPawn()->GetActorLocation(), RandomLocation, 15000.0f);
and the
MoveToLocation(RandomLocation);
are causing the crashes. I have narrowed it down to these as well because when I comment them out the games functions perfect but the AI enemy doesn’t roam. I am trying to have the AI still roam though but when the player dies it should just go to the next level and not just crash. Any help would be great. I will be adding pictures of everything below.
AI Controller.CPP
AI Controller.h
Character.CPP for health check
Error Logs