Change Portrait Model
Change Portrait Model¶
Changes the portrait model of an actor to a different sprite or model.
Properties¶
System¶
| Name | Explanation | Type |
|---|---|---|
| Portrait Model | The sprite or model to use as the portrait model for the target actor. | Sprite or Model |
| Target | The actor whose portrait model will be changed. | Actor Reference |
Examples¶
Change Entity 0 Portrait Model¶
This changes the portrait model of entity 0 to the specified model file.
{"Data":{"CharacterModel":{"Animation":null,"BackfaceCullingMethod":0,"HueShift":0,"IsCycling":0,"IsModel":0,"Name":"Portraits/Hero.gltf","SpriteBorderThickness":0,"SpriteDuration":100,"SpriteFrames":3,"SpriteLayers":{},"SpriteOrientation":4,"SpriteOrientedAroundCenter":1,"SpriteRegion":"0,0,0,0","UseSpriteLayers":0,"Scale":"1,1,1","Translation":"0,0,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.Entity.EntityChangePortraitModelCommand"}