I have set it up like this
World->LineTraceMultiByChannel(MultiHit, StartTrace, EndTraceSpread, ECC_Visibility, Params);
TArray<FHitResult> MultiHit;
When i hit my enemies how do i get the actors from the array so i can apply damage? This is how i did it before when i used a single line trace but i dont know how to do it with a multi trace.
if (Hit.Actor != NULL) {
if (Hit.GetActor()->ActorHasTag("Enemy")) {
UE_LOG(LogTemp, Warning, TEXT("Hit"))
ApplyDamage();
}
}