don't alert disabled guards
This commit is contained in:
parent
6a3cc1b05e
commit
efb3e6b4bf
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ local function alertGuards(aggressor, cell)
|
||||||
|
|
||||||
for npc in cell:iterateReferences(tes3.objectType.npc) do
|
for npc in cell:iterateReferences(tes3.objectType.npc) do
|
||||||
local distance = playerPos:distance(npc.position)
|
local distance = playerPos:distance(npc.position)
|
||||||
if npc.object.isGuard and npc.mobile and distance <= config.combatDistance then
|
if not npc.disabled and npc.object.isGuard and npc.mobile and distance <= config.combatDistance then
|
||||||
log("Alerting %s, %s units away, to the combat!", npc.object.name, distance)
|
log("Alerting %s, %s units away, to the combat!", npc.object.name, distance)
|
||||||
|
|
||||||
if config.combatDialogue then
|
if config.combatDialogue then
|
||||||
|
|
Loading…
Add table
Reference in a new issue