roguealpha Posted June 4, 2012 Share Posted June 4, 2012 Is there a way to keep npcs from passing through doorways? I'm trying to make a guard-proof sanctuary, but even removing the navmeshes doesn't seem to work. Link to comment Share on other sites More sharing options...
Striker879 Posted June 4, 2012 Share Posted June 4, 2012 What about 'locked, requires key' and give your character the only key? Link to comment Share on other sites More sharing options...
The_Vyper Posted June 4, 2012 Share Posted June 4, 2012 Here's the most effective way of keeping NPCs from going through doors: 1. Create a unique key for the door(s), but don't put it in game (and don't add it to your inventory.2. Set the ownership of the door to PlayerFaction.3. Set the lock level to "Needs a Key" and select the key you made in step 1. Once this is done, only NPCs belonging to the PlayerFaction can go through the door(s) without a key. Guards are basically the police, so I'm not sure if this will keep them out. It'll keep everyone else out, though. Link to comment Share on other sites More sharing options...
kingtitan Posted June 4, 2012 Share Posted June 4, 2012 While vyper's way will work, you can also write a simple script that functions the same way as linking two doors, but only applies to transporting the player. I use it in a prison mod that I have been developing for a while now (to keep prisoners inside certain cells). Link to comment Share on other sites More sharing options...
roguealpha Posted June 5, 2012 Author Share Posted June 5, 2012 Ah, yes. While locking it with a key didn't work, Vyper's ingenious solution has worked like a charm. Thanks! Link to comment Share on other sites More sharing options...
roguealpha Posted June 5, 2012 Author Share Posted June 5, 2012 Huh, it still seems that the guards won't disengage even after being locked out. Even when I'm in a cell the guards can't reach, the game still claims there are enemies nearby and I can't wait/sleep. Any ideas? Link to comment Share on other sites More sharing options...
roguealpha Posted June 5, 2012 Author Share Posted June 5, 2012 SM Combat Hide fixed the problem nicely. Link to comment Share on other sites More sharing options...
Recommended Posts