AI command spam in Roryn wilderness

Type: 

Bug

Severity: 

Normal

Game version: 

OpenMW

Concerns: 

TR_Preview

Found in Version: 

Status: 

Fixed for Version: 

Description: 

TR_m4_q_TTSFran_scrpt

script contains this:
 

 

    if (  GetCurrentAIPackage != 3 )                                                            ;follows Corane unconditionally
            AIFollow TR_m4_q_Corane_Morianne 0 0 0 0
    endif

GetCurrentAIPackage only returns 3 when player gets in AI range of the NPC, but the script is still active outside of that range, so AIFollow fires every frame while in the exterior cells next to the NPC.

If the Follow package is just to always join the other NPC in combat, directly adding a follow package in the NPC record instead will be enough.