Jump to content

Confine NPCs to fight within an Area


Recommended Posts

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...