Skip to content

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.

set_portrait_expression(entity(0), 3);
{"Data":{"CharacterModelAnimationIndex":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"3","VariableIndex":0,"Metadata":null},"IsReset":false,"Target":{"IsSelf":false,"IsPartyMember":false,"IsEntity":true,"IsUniqueID":false,"Identifier":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":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.

set_portrait_expression(self, reset);
{"Data":{"CharacterModelAnimationIndex":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"IsReset":true,"Target":{"IsSelf":true,"IsPartyMember":false,"IsEntity":false,"IsUniqueID":false,"Identifier":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null}},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Animation.SetPortaitExpressionCommand"}