How do I temporarily cut off navigation from a doorway/hallway

I want to cut off navigation from doors when they are closed as well as certain hallways but only for certain times. I tried using a NavModifierVolume but so far I can’t find a way to disable/enable or move it somewhere else, but so far no luck. how can I accomplish this?

Well, I would think just using a normal mesh with blocking collision on and using blueprint to put it in the hallway/door would make the AI not go that way? I could be wrong. Try it with “can ever affect navigation” box checked on in details.

Doing it directly into the nav mesh isn’t possible with the normal nav mesh setup because those are baked in before the game starts and don’t change during runtime. There are navigation options that are able to be changed at runtime, but they require a lot of extra work to get them to function.