Problem with GetOverlappingActors and class filter

Ok I solved this problem, we need to write this :


void UHealComponent::Heal(float HealValue)
{
	TArray<AActor*> HumansInZone;

	GetOverlappingActors(HumansInZone, TSubclassOf<AHumanCharacter>());
}

2 Likes