How do I counter attacks from my AI?
So I am working on a melee system for a project, I am fairly new to the engine. I cannot figure out how to counter an incoming attack from the enemy. Like a parry system in God Of War games. I know it has something to do with collision boxes, but I just dont know where to start as I don't have any idea how collision boxes work. I know how trigger box works though. I would really appreciate any help.
asked Aug 27 '16 at 02:10 PM in Blueprint Scripting
A collision box works quite exactly the same way like trigger boxes I believe. However for your melee system you probably will have to learn a bit more if you don't know how to do it (would have to look into it myself as well)..
First you need to learn a lot more about blueprint scripting because that's what you need to do, you need to write a script that knows what attacks are being projected towards your player, then you need to make a system that while the enemy attacks there's a time frame within which you can press a key in order to parry the attack. For all of this you need to know how you can get information back and forth between your animation blueprint (where the animation logic for your attacks and such is stored) into your melee system blueprint where you create all the logic of the actual combat.. that's at least how I would go about it.
What you want to do is not simple, usually there are big teams creating these thing but if you are patient and persistent you can succeed as well, here are some links that give you an introduction to the things you need to know:
Hope this helps and good luck,
Follow this question
Once you sign in you will be able to subscribe for any updates here