List of damaged actors from radial damage?

When I use the apply radial damage with falloff function, it works as expected, but I also wanted to do additional things with the players that I damaged. Is there any way that I could maybe get a list of all the damaged players from this function? Any help would be greatly appreciated!

As you know, the “Apply Radial Damage With Falloff” is not returning any useful thing except a bool, which is not useful at your case.

The best Practice is that you put some logic within all the player to assign self within an array once they get destroyed. The meaning is, all players will have a logic to inform the server once they are damaged. That way you will have a list/array at the server side.

-m

Thanks for the quick reply, that’s the way I was going to do it that way but wasn’t sure if that was the best practice. It would be fantastic if the stock function from Epic just returned a list of actors… thank you for the clarification!

It make sense to put that feature into the node…Good luck :slight_smile:

-m

Hello, TommyZakh.
I also want to returned a list of actors. Have you solved this problem?..

It’s too sad. not returned…

TArray<AActor*> OverlappingActors;
GetOverlappingActors(OverlappingActors, ACharacter::StaticClass());

for (auto Actor : OverlappingActors)
{
	UE_LOG(LogTemp, Warning, TEXT("Actor damaged by explosive: %s"), *Actor->GetName());

	UGameplayStatics::ApplyDamage(
		Actor,
		Damage,
		ShooterController,
		Shooter,
		UDamageType::StaticClass()
	);