Skip to content

Set Character Animation

Set Character Animation

Changes the active character animation on an actor.

Properties

System

Name Explanation Type
Character Animation The index of the character animation to set from the database. Variable or Value
Reset Animation Whether to reset the character animation back to the default. Toggle
Target The actor to set the character animation on. Actor Reference

Examples

Set Character Animation on an Entity

Sets character animation 3 from the database on entity 0.

set_actor_pose(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.SetActorPoseCommand"}

Reset Character Animation on an Entity

Resets the character animation back to the default on entity 0.

set_actor_pose(entity(0), reset);
{"Data":{"CharacterModelAnimationIndex":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"IsReset":true,"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.SetActorPoseCommand"}