SetExpressionOverride - Actor
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.
SyntaxEdit
Function SetExpressionOverride(int aiMood, int aiStrength = 100) native
ParametersEdit
- 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 ValueEdit
None.
ExampleEdit
; 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)
NotesEdit
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.