How do I add a simple melee attack animation to my 3rd person player?
Hi guys & gals!
I am trying to make a third person game these days and managed to set up some basic animations (idle, run, jump) in my character animation blueprint. Based on variables from the event graph, my character can now do exactly what the third person template character can do, but now I also need to add some additional animations like various melee attacks and randomized idle animations.
I have read through the docs and tried various methods, but I just cannot understand how to do this. As far as I understand, I would have to get/create a variable in the event graph and then pass this into my animation graph, right? I just can't seem to figure out how I can get an input event (left mouse click?) to trigger an (additive?) animation and I am about to lose my sanity.
Could anyone please point me in the right direction?
All the best,
You would first need to create an anim montage. You do that by right clicking on your animation and selecting "Create Anim Montage"
Open up the montage and you will be able to set the name of the slot. Call it "FullBody"
Now go to your anim blueprint > animgraph and set up the SlotNode in between the state machine that runs the idle and run animations and the Final Pose Node. Make sure to call the slot FullBody.
Now in your characters blueprint you can play animations this way.
If you would like to have it play in code, its a different set of things you have to do.
Follow this question
Once you sign in you will be able to subscribe for any updates here