Set Portrait Expression
Set Portrait Expression¶
Changes the active portrait expression on an actor.
Properties¶
System¶
| Name | Explanation | Type |
|---|---|---|
| Portrait Expression | The index of the portrait expression to set from the database. | Variable or Value |
| Reset Animation | Whether to reset the portrait expression back to the default. | Toggle |
| Target | The actor to set the portrait expression on. | Actor Reference |
Examples¶
Set Portrait Expression on an Entity¶
Sets portrait expression 3 from the database on entity 0.
{"Data":{"CharacterModelAnimationIndex":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"3","VariableIndex":0,"Metadata":null},"IsReset":0,"Target":{"Identifier":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"IsEntity":1,"IsIdentifiedByUniqueID":0,"IsPartyMember":0,"IsSelf":0,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Animation.SetPortaitExpressionCommand"}
Reset Portrait Expression on Self¶
Resets the portrait expression back to the default on the current entity.
{"Data":{"CharacterModelAnimationIndex":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"IsReset":1,"Target":{"Identifier":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"","VariableIndex":0,"Metadata":null},"IsEntity":0,"IsIdentifiedByUniqueID":0,"IsPartyMember":0,"IsSelf":1,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Animation.SetPortaitExpressionCommand"}