How to reference an object from level to c++ code

If there is only one enemy in the entire level you could just do GetAllActorOfClass() and save the enemy reference in your Enemy pointer and then apply damage.

But if there are multi spawns of the same pawn i would rather use ApplyDamage. Like from the weapon/Projectile that is colliding use an overlap to determine the enemy and apply the damage