AI melee combat?
Hello friends! I'm working on a third person game and I need AI melee combat. I'm currently following these tutorials and have made it to part 7, everything is working fine but now I need to implement melee combat instead of ranged shooter combat, and since I'm a complete noob, I don't know how to proceed. I've managed to make it so that my line trace for the attack is much shorter, and so that my enemy only does damage when in line trace range. I've tried to make it so that the line trace doesn't do damage, but instead casts to my AIs blueprint and fire an event to do damage, but that hasn't worked. So, long story short, my basic questions are 1) how do I apply an attack event to do damage? 2) How do I apply my attack animation? 3) Can I get my AI to stand still and do the event/animation, and when that's done, continue to follow the player?
Sorry if this is badly phrased, I'm literally just learning scripting all in all and have never written a line of code in my life, so all of the terms are still a little fuzzy to me.
I figured it out! Instead of trying to uncheck the boolean in the BTT I unchecked it in the anim BP and now the animation runs just as it should.
answered Apr 18 '16 at 05:12 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here