← Back to all addons

Animate Character Command

Posted by MrMystery on Feb 6, 2026 at 8:29 PM

GameplayFeature3.0 Verified
🔥 3 🍻 1

Here’s a simple Command you can drop into your game. Attached are some scripts you will need, and since this was in my earlier days, requires SOME editting of M2D scripts, namely:

Movable.cs - add the following line in the top variable declarations:

public IAnimationStrategy AnimationStrategy => m_animationStrategy;

IAnimationStrategy.cs - add the following line to the bottom of the bool list:

bool PlayCommandAnimation(string commandParameter);

AAnimationStrategy.cs - add this at the bottom of the animation methods

public virtual bool PlayCommandAnimation(string commandParameter)
{
    if (m_animator)
    {
        m_animator.SetTrigger(commandParameter);
        return true;
    }
    return false;
}

I made this for dynamic conversations. It’s pretty simple to use:

Select the Command : Animate Character - from any command line area… i.e., at start/end of conversation or during a conversation/response.

If you want to animate the Host (i.e., the Character running the command, just leave the Character (Base) empty, if for some reason you want to animate someone else, they must be present in the scene. Currently you cannot animate the Player, mostly because you cannot easily add him to the CharacterBase, but good starting point for anyone.

Then for the string, just put the animation string for the animation you want to have play on the Animator for that Character.

Opps, you need this too.

💬 Comments (0)

Be the first to comment! Join our Discord to share your thoughts.

Want to continue the conversation?