Help with hit flash visual effect

Hello once again, I was wondering if anyone could help me out with a hit flash effect for when enemies take damage.

I currently have this setup which works but the Delay node used causes an issue where the rest of the script won’t play until time is up, resulting in some wonky-looking enemy damage reaction.

I need to remove the hit flash effect from the main damage scripting and instead have it so that the effect is still somehow triggered at the same time without being directly within the damage script’s path of logic.

I could use Animation Notifies within each of the enemy’s damage animations but that would be extremely time-consuming long term & extremely inefficient.

Thanks in advance!

Have you tried a re-triggerable delay?

No, but after looking into it I don’t think its what I’m looking for, unless I’m missing something.

The problem I’m having is that the Delay node is delaying the execution of the rest of the code which results in a belated enemy response to taking damage. I need to remove the ‘hit flash’ part of the code to stop this from happening but I also need the hit flash effect to still be able to be triggered from taking damage.

Ok, so how about a sequence node?

One pin would run the flash change, the other would always run the animation.

That seems to have worked. Thanks for the suggestion!