Get Overlapping Actors returns nothing But Component Overlap Actors returns correct results

I’m trying to re-implement some blueprint code in c++. I wanted to check if any enemies are within the hitbox of the players attack. Previously in blueprint I was using Component Overlap Actors. This correctly returns the actors hit.

However now I am using GetOverlappingActors and it isn’t returning any actors at all.

Does anyone know why this might be? This is the case in both BP and c++ versions of getOverlappingActors.

Code below: Only one set of actors is returned. Ignore the errors they go away when I hit compile.