From 34d29fffe2187056135c87807492b16d18f16134 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Sun, 26 Jul 2020 00:38:56 -0700 Subject: [PATCH] fixed timers not being reset on load (thanks abot) --- MWSE/mods/celediel/MoreAttentiveGuards/common.lua | 2 +- MWSE/mods/celediel/MoreAttentiveGuards/sneak.lua | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/MWSE/mods/celediel/MoreAttentiveGuards/common.lua b/MWSE/mods/celediel/MoreAttentiveGuards/common.lua index b3b67c8..f0c6161 100644 --- a/MWSE/mods/celediel/MoreAttentiveGuards/common.lua +++ b/MWSE/mods/celediel/MoreAttentiveGuards/common.lua @@ -4,7 +4,7 @@ local this = {} this.modName = "More Attentive Guards" -- or something this.author = "Celediel" -this.version = "1.0.2" +this.version = "1.0.3" this.modInfo = [[Guards with some actual spacial awareness! Guards who catch you sneaking will follow you for a bit of time, and will also come to the player's rescue if attacked unprovoked.]] diff --git a/MWSE/mods/celediel/MoreAttentiveGuards/sneak.lua b/MWSE/mods/celediel/MoreAttentiveGuards/sneak.lua index 1b4684f..2a33831 100644 --- a/MWSE/mods/celediel/MoreAttentiveGuards/sneak.lua +++ b/MWSE/mods/celediel/MoreAttentiveGuards/sneak.lua @@ -159,6 +159,15 @@ this.onCalcMoveSpeed = function(e) end end +this.onLoaded = function(e) + -- some clean-up + follower = nil + followTimer = nil + dialogueTimer = nil + ogPosition = nil + isFollowing = false +end + -- }}} return this