Jump to content

How to make npcs use doors?


Recommended Posts

I've set a family of farmers in the CK, and copied Sven's house to use as their house. I created a family faction, attributed ownership of the house to it, put a extra bed for the child, and then make the AI packages.

 

Each npc was set as part of the faction and have a key to the door in their inventory. I also put them into a house lock formlist, following the examples in Sven's house and Alvor's house.

 

However, the packages for eat and sleep are not firing, as the npcs never use the door. When the time scheduled comes, by the night, they dont go to the house, and instead keep outside, doing nothing.

 

I noticed my follower also dont follow me inside the house, and if I summon her inside the house, she dont come outside as well. Both house and outside farm were navmeshed using the havok setting.

 

Its clear the problem is with the door, but I navmeshed the space around it. Later on, I also navmeshed the small space after it as well. I also set the north marker to the correct direction, which, in the other two houses, is put before the door. No object inside the house copied have ownership to Sven, they were all changed to the family I created.

 

The door used is FarmhouseLDoor1, the same used in Sven's and Alvor's houses. The base object dont have "minimal use" selected, which means it can be used by npcs. Ownership is set to the family faction. Initially I put a lock on it, but they were not using the key, so I left it unlocked. Even with that, they dont enter the house.

 

Do anyone have some information about how to set the npcs to use the doors? I didnt find any tutorial in search engines about it.

Link to comment
Share on other sites

This is clearly NavMesh issue, to be more clear, it's cell's NavMesh not been connected.

- Go to your exterior 'Load Door' and open the NavMesh tool menu.

Now with your NavMesh active (showing in the render window), make sure that your "Door's Teleport Marker" is sitting on a NavMesh triangle (this is crucial !).

Press the "FINALIZE NAVMESH" and wait until the triangle beneath the "Door's Teleport Marker" turns to GREEN.

- Now go to your interior "Load Door", the one that is connected to the exterior load door you just Finalize and do the same.

That's all.


Every time you add a load door to connect cells you need to "Finalize" the NavMesh.

This is how NavMesh and cells are connected and npcs and quests know where to go/target.



Edited by maxarturo
Link to comment
Share on other sites

  • Recently Browsing   0 members

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