How to find the nearest actor in a direction?

hello, if you are still looking for blueprint setup i can show you my logic which works just fine.