Did you set the component that will call this hit event?
GetCapsuleComponent()->OnComponentHit.AddDynamic(this, &AEnemyBase::OnHit);
Add it in BeginPlay();
Did you set the component that will call this hit event?
GetCapsuleComponent()->OnComponentHit.AddDynamic(this, &AEnemyBase::OnHit);
Add it in BeginPlay();