I am new to unreal engine and this question has likely been asked a hundred times on the forum, but I can’t find a straight answer. How do I play two animations together? I’ve modelled and rigged a gunfire animation and an arm recoil animation(working with an action event). I know the solution has to do with montages, but I don’t know where to place them in the editor.
Thank you for replying. I’ve tried to add a play montage to the character blueprint.
The weapon is attached to a socket and spawned in with the event begin play. The player’s animation is set up in a state machine. I still can’t get the animation to play.
So there’s a few things here that you need to be mindful of.
So when you play a spontaneous animation, animation montage, as @Mind-Brain as mentioned, is typically the go-to. However, you need to set this up in your animation blueprint for the character properly. So you need to go to the animation blueprint of the character. You need to add a montage slot. You can just add one and have the default slot right at the end of the animation graph. And then when you create your animation montage on your players or your character’s main skeleton, again, you need to make sure that’s set to the default slot.
This should get your main character playing your recall animation
you will need to repeat the process for your weapon so if you are adding a gun as another actor that’s attached to the socket of your main character then you will need to get get to reference to that you will need to get and cast to the skeletal mesh instance or the anim instance of that actor of the mesh and then you will need to call again play animation montage but the target will be the animation instance or the skeletal mesh of the actor itself which you are attaching.
typically animation montages and animation blueprints are only used on skeletal meshes so if your weapon is a skeletal mesh that’s fine if your weapon is a static mesh then you might be using a slightly more advanced way of handling animations but I won’t go into that if it you are just using a skeletal mesh.
Skeletal meshes are typically used for squishy biological things where deformation is required. Static meshes are for robots and things that don’t typically squish, but they can be used for it.