Background for Skyrim SE
Member of the Actor script
voidfunctionSetExpressionOverride(intaiMood, intaiStrength=100)Native

Description

Wiki Description

Sets an expression override on this actor. This prevents any other system (like AI or dialogue) from changing the expression until the override is cleared.

Documentation Comment

Sets an expression to override any other expression other systems may give this actor.
7 - Mood Neutral
0 - Dialogue Anger 8 - Mood Anger 15 - Combat Anger
1 - Dialogue Fear 9 - Mood Fear 16 - Combat Shout
2 - Dialogue Happy 10 - Mood Happy
3 - Dialogue Sad 11 - Mood Sad
4 - Dialogue Surprise 12 - Mood Surprise
5 - Dialogue Puzzled 13 - Mood Puzzled
6 - Dialogue Disgusted 14 - Mood Disgusted
aiStrength is from 0 to 100 (percent)


Caveats

CK Wiki - Notes

The dialogue and combat expressions seem not to work properly on female characters. The dialogue ones affect their eyes only, the combat ones do not work at all.


Parameters

  1. intaiMood

    CK Wiki Description

    The mood (or expression) to override with.

    • The following values are acceptable:* 0:Dialogue Anger
      • 1:Dialogue Fear
      • 2:Dialogue Happy
      • 3:Dialogue Sad
      • 4:Dialogue Surprise
      • 5:Dialogue Puzzled
      • 6:Dialogue Disgusted
      • 7:Mood Neutral
      • 8:Mood Anger
      • 9:Mood Fear
      • 10:Mood Happy
      • 11:Mood Sad
      • 12:Mood Surprise
      • 13:Mood Puzzled
      • 14:Mood Disgusted
      • 15:Combat Anger
      • 16:Combat Shout
  2. intaiStrength=100

    CK Wiki Description

    The strength of the expression, from 0 to 100 (in percent)

    • Default:100

Examples

; Set the annoying fan's expression to be "mood happy"
AnnoyingFan.SetExpressionOverride(10)
; Set the annoying fan's expression to be half "mood surprise"
AnnoyingFan.SetExpressionOverride(12, 50)

Auto-Generated Example

int myInt__aiMood
int myInt__aiStrength

myActor__toCallFunctionOn.SetExpressionOverride(myInt__aiMood, myInt__aiStrength)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.