// create tarray for hit results
TArray OutHits;
// start sphere trace
if (GetWorld()->SweepMultiByChannel(OutHits, SweepStart, SweepEnd, FQuat::Identity, ECC_CustomCharacterCollisionChannel, MyColSphere))
{
// loop through TArray
for (auto& Hit : OutHits)
{
// how do I access the players in the array and then call take damage on all of them
}
}