The policy or endorsement affording the coverage specified in K.S.A. 40-284 may further provide that payment to any person of sums as damages under such coverage shall operate to subrogate the insurer to any cause of action in tort which such person may have against any other person or organization legally responsible for the bodily injury or death because of which such payment is made, and the insurer shall be subrogated, to the extent of such payment, to the proceeds of any settlement or judgment that may thereafter result from the exercise of any rights of recovery of such person against any person or organization legally responsible for said bodily injury or death for which payment is made by the insurer. Such insurer may enforce such rights in its own name or in the name of the person to whom payment has been made, as their interest may appear, by proper action in any court of competent jurisdiction.
K.S.A. 40-287