Editing
SetExpressionOverride - Actor
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
[[Category:Scripting]] [[Category:Papyrus]] '''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 == <syntaxhighlight lang="papyrus"> Function SetExpressionOverride(int aiMood, int aiStrength = 100) native </syntaxhighlight> == 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 *aiStrength: The strength of the expression, from 0 to 100 (in percent) **'''Default''': 100 == Return Value == None. ==Example== <syntaxhighlight lang="papyrus"> ; Set the annoying fan's expression to be "mood happy" AnnoyingFan.SetExpressionOverride(10) </syntaxhighlight> <br/> <syntaxhighlight lang="papyrus"> ; Set the annoying fan's expression to be half "mood surprise" AnnoyingFan.SetExpressionOverride(12, 50) </syntaxhighlight> == 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. == See Also == *[[Actor Script]] *[[ClearExpressionOverride - Actor]]
Summary:
Please note that all contributions to the CreationKit Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
CreationKit:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Landing page
Tutorials
Game Systems
Editor Reference
Scripting Reference
Recent changes
Help
Tools
What links here
Related changes
Special pages
Page information
Page values