S.C. Code Ann. § 44-20-450
(A) Proceedings for the involuntary admission of a person with mental retardation or a related disability to the services of the department may be initiated by the filing of a verified petition with the probate or the family court by:
(8) a solicitor or an assistant solicitor responsible for the criminal prosecution pursuant to Section 44-23-430(2).
Upon filing of the petition, the judge shall set a date for a hearing on it and ensure that the client has an attorney who represents him. The parents, parent with legal custody, spouse, guardian, or nearest known relative of the person alleged to have mental retardation or a related disability and in whose behalf the petition has been made and in the discretion of the court, the individual alleged to have mental retardation or a related disability and the department must be served by the court with a written notice of the time and place of the hearing, together with a written statement of the matters stated in the petition. If no parent, spouse, legal guardian, or known relative of the person alleged to have mental retardation or a related disability is found, the court shall appoint a guardian ad litem to represent the person alleged to have mental retardation or a related disability, and the notice must be served upon the guardian. If the parent, spouse, guardian, or known relative of the person alleged to have mental retardation or a related disability is found, he must be notified of the right to an attorney at the hearing.