Simultaneous Hit Reaction with GAS

Hi, I’ve been learning UE for about a year now and it’s my first post here but I can’t seem to find the solution myself this time.

I’m buidling a Beat’em up game and I’ve been struggling with an issue when hitting several ennemies simultaneously with an AOE or with multiple trace hitbox. For context, I’m using the Gameplay Ability System and the system works as follows :

  • When I press the button, the ability is called and the anim montage plays. It has a first notification that starts the hit scan (a timer and an event) and another one that ends it. Depending on if the type of move, the hitbox will be a sphere AOE or a capsule shape that follows a specific body part i’ve set on the ability.
  • When the hitscan detects a new target, it deals damage on his HP using a custom execution class.
  • But he also starts building up a “knockback value” using another custom execution class, and if it exceeds a certain attribute, the ennemy starts being knocked back (pushed a little and playing his KB animation).

Now the issue is that if i successfully hit more than 1 ennemy with the same ability, only the last one to be processed will actually play the animation and be knocked back.

The thing is, i can say with 99% certainty that ALL the ennemies that were hit do actually receive correctly every step of the process. They take their damage, they properly accumulate knockback value, they receive the event and do try to activate the knockback ability (but they silently fail), and they can even identify themsleves properly every step of the way.

I’ve tried moving the animation logic out of the knockback ability and put it in the ennemy class while calling from the ability but It behaved the exact same way.

I’m using custom metahuman classes and i’ve been upgrading my version to 5.7.4 from 5.6.1 recently and it broke some things but nothing i couldn’t work arount. I hope its nothing like that.

I’d be happy to provide any more details and screenshots if needed.

Thanks for reading and i hope someone actually understands what’s happening.