How to set variable for animations?

Good evening. I’m trying to make npc with ability to patroll or make a some job. So I want to make a variable for animation but I can’t do it. How can I fix that? I just don’t want to hardcode it and create a lot of variables for every animation like cheers, exercise, waving hands and others…

You need to create an animation blueprint that is tied to the pawn, that manages the animations. You’d use a state machine to manage which animation is playing, based upon variables (like a bool called ‘isMoving’ which triggers the skeletal mesh to enter a walking animation).

Epic has some good documentation on how to set all this up here:

Oh, understood. I thought I could use just common bp. Thank you.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.