[ ] To enable dynamic modifiers: Go to Settings > Project Settings on the menu bar. Go to the Navigation Mesh settings and under the Runtime section, click the Runtime Generation dropdown. Select Dynamic Modifiers Only.
[ ] See how UNavigationSystemV1::UpdateComponentInNavOctree updates the NavMesh. We should do something similar in a Mass processor every frame for all soldiers that have moved that frame.
Current avoidance can lead to stuck entities since if an entity is blocking a path it won't reroute navigation to a different path far away. See https://github.com/HaywireInteractive/OnAllFronts-Public/issues/1017for more. Instead we could update NavMesh dynamically with all entities: https://dev.epicgames.com/documentation/en-us/unreal-engine/modifying-the-navigation-mesh-in-unreal-engine?application_version=5.3