SetExpressionOverride - Actor
Revision as of 08:43, 15 June 2012 by imported>JLundin (Created page with "Category:Scripting Category:Papyrus '''Member of:''' Actor Script ''(Requires 1.6)'' Sets an expression override on this actor. This prevents any other system (li...")
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
Function SetExpressionOverride(int aiMood, int aiStrength = 100) native
Parameters
- 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
- The following values are acceptable:
- aiStrength: The strength of the expression, from 0 to 100 (in percent)
- Default: 100
Return Value
None.
Example
; 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)