S.C. Code Ann. § 6-9-130
Buildings must be inspected according to the codes in effect for the locality on the date of the issuance of the building permit.