hey thanks that was really helpful! so somthing like this would work?
#define COLLISION_TRACE ECC_GameTraceChannel1
FHistResult Hit;//the thing that is an output of the statement
FCollisionQueryParams Line(FName("Collision param"),true);
World->LineTraceSingle(Hit, this->Location /*cant remember the actual name for the variable :/ */, this->RelativeLocation.X += 100,COLLISION_TRACE,Line);
AEnemy* enemy = Cast<AEnemy>(Hit.GetActor());
if(enemy){
enemy->Destroy();
}