Is overlapping component for attacks
I'm trying to hit my enemy with the "is overlapping component" node that checks my own collision with the enemies' collision. This is what I made, but it's currently not working:
It used to work with the "On component begin overlap", but the problem with that was that it didn't always register my attacks, only when it started to overlap with the enemies' collision. I wanted the attack to go through, even if the 2 colliders were already overlapping on start of the attack.
Thank you for helping me out with this problem <3
asked Feb 03 '19 at 03:57 PM in Blueprint Scripting
it looks to me like your issue lies in your cast. in your on overlap example you are casting the other actor to the enemy class, but in the attack event you are casting your player to the enemy class.
what you should probably do is to on attack event get overlapping actors then for each cast to enemy then do your script.
oh and your know theres built in nodes for applying and receiving damage right so you dont need to make your own custom events for that. this could possibly eliminate the need for you cast.
Follow this question
Once you sign in you will be able to subscribe for any updates here