If you are stationed outside South Carolina, your South Carolina driver license stays valid until 90 days after you are discharged. Your dependents get the same extension. Renew within that 90 day window and you do not have to retake the knowledge and road tests.
After discharge, renew at a South Carolina Department of Motor Vehicles branch office and bring documentation of your discharge. If you go more than 90 days past discharge you have to take the knowledge and road tests.
Your discharge documentation, and orders or other proof that you were serving outside South Carolina when the license expired.