Wanting to create a Auto Turret in UE4 with C++ Scripts need advice

Hi I am looking to recreate a auto turret in UE4 using C++ as opposed to blueprints. I’ve scoured the web trying to find some sort of tutorial or resource to guide me however every resource seems to be in blueprints.

I essentially want to have a auto-turret that shoots at an enemy as it enters it’s range. The enemy will have hitpoints and will die when shot over that threshold. I don’t need any fancy turret animation just want the turret to spawn projectiles that collide with the enemy and cause damage to it.

Does anyone have any pointers or resources they could point me towards?