This is the price I pay for using Quick Actions without paying attention.
After staring at my code for way too long I realized my mistake. DistanceToPlayer’s method is set to void and not float. Whoops! I was also missing the return.
Hopefully this helps someone.