Melee "auto correction"

Hi!

I would like to make my third person player character face and launch towards the nearest enemy NPC that is in some way in front of the player character and in melee range when doing a melee attack. Kinda like an auto correction…

So any ideas how I could do that in blueprints?

Thank you!