From 57b91895f59341ec60e09826e1f11b94a44dbc21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Sun, 22 Aug 2021 00:20:05 -0700 Subject: [PATCH] guards don't follow in wilderness cells --- MWSE/mods/celediel/MoreAttentiveGuards/sneak.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MWSE/mods/celediel/MoreAttentiveGuards/sneak.lua b/MWSE/mods/celediel/MoreAttentiveGuards/sneak.lua index ec9909a..f0b0fba 100644 --- a/MWSE/mods/celediel/MoreAttentiveGuards/sneak.lua +++ b/MWSE/mods/celediel/MoreAttentiveGuards/sneak.lua @@ -34,6 +34,9 @@ local function doChecks(e) if not e.detector.object.isGuard then return false end if e.target ~= tes3.mobilePlayer then return false end + -- don't bother following in outside wilderness cells + if not tes3.player.cell.restingIsIllegal then return false end + if e.detector.inCombat then log("Busy with combat, not following...") return false