Research:NPC AI Behaviour

Actor scan
For a single actor, labelled npc

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

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.