I have this code
void AHGBaseWeapon::MakeDamage(const FHitResult& HitResult)
{
const auto DamagedActor = HitResult.GetActor();
if (!DamagedActor) return;
DamagedActor->TakeDamage(1.0f, FDamageEvent(), GetPlayerController(), this);
}
And ide says FDamageEvent() incomplete type is not allowed.
But i have another project where same function compile with no error