S.C. Code Ann. § 44-23-410
(A) Whenever a judge of the circuit court or family court has reason to believe that a person on trial before him, charged with the commission of a criminal offense or civil contempt, is not fit to stand trial because the person lacks the capacity to understand the proceedings against him or to assist in his own defense as a result of a lack of mental capacity, the judge shall: