Hi. I create a blank code project. and try to create new Character for DefaultPawn in game mode;
and attach to MyCharacter a sphere for collision;
and make a Actor. but I cant detect player overlap with this actor :
void AScorePoint::ReceiveActorBeginOverlap(class AActor* other)
{
Super::ReceiveActorBeginOverlap(other);
APlayerCharacter* playerCharacter = Cast<APlayerCharacter>(other);
if (playerCharacter && playerCharacter->isAlive)
{
Destroy();
}
}
and Score Point Actor Has a sphere for collision