Hi,
This is just an add on to the awesome answer from Ben. I was also struggling with OnHit function not responding even after I had set generated Hit events true. The one thing missing was UFUNCTION() before the OnHit function… Again thanks Ben. I am a student at your Udemy course… Keep up the good work…