SetExpressionOverride - Actor

From the CreationKit Wiki
Revision as of 16:10, 19 August 2012 by imported>JohnB
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Actor Script (Requires 1.6)

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.

Syntax[edit | edit source]

Function SetExpressionOverride(int aiMood, int aiStrength = 100) native

Parameters[edit | edit source]

  • aiMood: 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
  • aiStrength: The strength of the expression, from 0 to 100 (in percent)
    • Default: 100

Return Value[edit | edit source]

None.

Example[edit | edit source]

; 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)

Notes[edit | edit source]

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.

See Also[edit | edit source]