Unable to find a good tutorial about how to do a proper loop attacking like Diablo and LoL

I have been playing with Unreal Engine 4 trying to learn a lot of stuff. I have a large a mount of stuff done like inventory system and enemy AI. I cant seem to find out how to make a good player attack system where you select an enemy and the players character will walk to and loop attack until death or otherwise moving again