Ok I solved this problem, we need to write this :
void UHealComponent::Heal(float HealValue)
{
TArray<AActor*> HumansInZone;
GetOverlappingActors(HumansInZone, TSubclassOf<AHumanCharacter>());
}
Ok I solved this problem, we need to write this :
void UHealComponent::Heal(float HealValue)
{
TArray<AActor*> HumansInZone;
GetOverlappingActors(HumansInZone, TSubclassOf<AHumanCharacter>());
}