Research:NPC AI Behaviour

Actor scan
For a single actor, labelled npc

Comments
Hrnchamd: With the lookAt action, the NPC looks at its target's head. The anim controller blends the head pose over time.

Capostrophic, August 2019: It's not really clear what so called "look at" action actually means now that its conditions are updated. NullCascade suggested that it might be avoid/flee action, but for now it remains a mystery.

Shielding face from storm
For a non-werewolf humanoid:

Comments
The use of fAlt is inexplicable. The test should probably be. The storm idle applies to the upper body bone group, and has higher priority than movement animations, but lower priority than weapon animations.

NPC awareness check
This check runs every 5 seconds for each NPC. It occurs whether you are sneaking or not, but isn't the same as the combat distance check.

Comments
Appears straightforward and bug-free. NPCs can take up to five seconds to notice you even if you are not sneaking. This function precedes the combat distance check. I have not identified if there is a line of sight check occuring before or after.

According to this formula, NPCs can still detect you when invisible? That seems wrong. Scrawl (talk) 00:25, 7 January 2014 (CET)

Fight
Affected by calm and frenzy spells.

Flee
Affected by rally and demoralize spells.