How can I add my shooting animation to my Character?

Hi Everyone

I’m trying to add an animation to my character where if i click ‘LMB’ on my mouse it will trigger the shooting animation. I want to make it where after it does the shooting animation, it goes back to my Idle/Run animation BP.

This is what I have so far, all I want to do is have the Left Mouse Button trigger the shooting animation 1 time every time the button is clicked and for it to go back to the Idle/Run sequence I have.

Any Help would be really apperciated!



you need to put a slot node in the anim graph otherwise the montage won’t play.
and directly play montage right after the mouse click. delete the do once node.

Okay, what slot node do i need though? I tried to add a slot node and it looked like there wasn’t one for me to add before the animation montage could play.

image
Put it before “output pose”

Is this correct?

if you only want upper body to play the montage you can move it here

You just fixed it! THANK YOU!

I got confused, so when you showed the default slot, I thought that had to go in the custom state machine i made, but i tried to put it in the anime graph and changed the default slot to ‘Upper Body’ because upper body is what got my enemy AI attack to work as well. I went to my character and added the animation montage to my left mouse button and it worked!

Thank for the help!



1 Like

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