Get player controller from damage causer

That works, assuming the damage causer is a pawn. It could be a projectile, a bomb, or something else. The answer depends on how you are applying the damage.