AI permanently stopping after i walk through a null nav modifier or i disable movement in a sequence

Hey there, I have only been learning UE for 2 or 3 days now so I am still very new and don’t know much. I am trying to make a simple system where an AI roams in a small area and follows me but it can only move when it is not illuminated. I have placed null nav mesh modifiers under light sources to restrict the AI from moving through them but as soon as I walk into the area the AI stops moving and is permanently stuck. Same happens with my system to stop the AI from moving when my PawnSensing component on my character sees the pawn. (I intend on making it so it only stops when the flashlight is on in the future but working on this for now.)




Any help would be appreciated.

Connect a print string to the “On Fail” pin of your ai move to node. When the player pawn enters an area with a null navmesh modifier it will likely cause that node to fail because there is no longer a path from the npc to the pawn. There is no finish execute node to handle the situation either so it may be getting stuck there.