The Re-Inventing the Wheel Thread

You’d have to look into the
FHitResult Trace(FVector TraceStart, FVector TraceDirection); function
it does the trace on the
GetWorld()->LineTraceSingleByObjectType(Hit, TraceStart, TraceEnd, ObjectParams, TraceParams);
line

Just look into the documentation and change that line to a sphere trace based on your parameters.