Deleted56253002User Posted October 1, 2020 Share Posted October 1, 2020 Is there a way to prevent NPCs from moving out of an area when in combat? I am modding forts now, and I want the archers to stay put inside their defensive walls and towers, and not for them move out of their forts where they'll be at a disadvantage. I am thinking about using AI packages and Idle markers as a first step, any ideas? Link to comment Share on other sites More sharing options...
maxarturo Posted October 1, 2020 Share Posted October 1, 2020 One way to do it is to: Make a 'Package' to force the npc to use only "Preferred Path", then in the part of the cell where the npc will be, "Preferred Path" the NavMesh. The "Preferred Path" NavMesh must be completely cut off from any other "Preferred Path" NavMesh, also be sure that there isn't any "Preferred Path" beneath it, like in a lower floor of the tower. Link to comment Share on other sites More sharing options...
Recommended Posts