Scriptname Dirty_AliasSoapScript extends ReferenceAlias Form[] Clothing Event OnInit() Actor kSelfRef = GetActorReference() if !kSelfRef return endif Dirty_QuestSoapScript kQuest = GetOwningQuest() as Dirty_QuestSoapScript if kQuest.IsRunning() Utility.Wait(2.0) if kQuest.IsPlayerReady if kQuest.Dirty_WashingAutomaticClothes.GetValue() == 1 Clothing = kQuest.Undress(kSelfRef) endif ;Utility.Wait(0.1) Utility.Wait( Utility.RandomFloat(0.1, 3.0) ) kQuest.PlayBatheAnimation(kSelfRef) if kQuest.Dirty_WashingAutomaticClothes.GetValue() == 1 kQuest.Reequip(kSelfRef, Clothing) endif endif endif EndEvent