fixed negative follow time. Guards actually won't follow if sneak >= 100 now

This commit is contained in:
Lilian Jónsdóttir 2020-07-25 23:17:12 -07:00
parent 26e5802d82
commit 8c5ea9cee4

View file

@ -94,6 +94,7 @@ local function startFollowing()
local function startFollow() local function startFollow()
local followTime = calculateFollowTime() local followTime = calculateFollowTime()
if followTime <= 0 then return end
log("%s starting to follow %s for %s time units", follower.object.name, tes3.player.object.name, followTime) log("%s starting to follow %s for %s time units", follower.object.name, tes3.player.object.name, followTime)
tes3.setAIFollow({reference = follower, target = tes3.mobilePlayer}) tes3.setAIFollow({reference = follower, target = tes3.mobilePlayer})