pxd2050 Posted August 11, 2020 Share Posted August 11, 2020 (edited) I'm programming a mod for changing and backing up clothes.First, use the getOutfit() function to back up the defaultoutfit, change clothes,and then use SetOutfit() to restore it.But Can't restore defaultoutfit in Game. What's going on? defaultoutfit Is it necessary to define in ESP? andoutfit Property DefaultOutfit auto outfit Property DefaultOutfit auto hiddenWhat's the difference? Edited August 11, 2020 by pxd2050 Link to comment Share on other sites More sharing options...
pxd2050 Posted August 11, 2020 Author Share Posted August 11, 2020 (edited) I'm programming a mod for changing and backing up clothes.First, use the getOutfit() function to back up the defaultoutfit, and then use SetOutfit() to restore it.But there is no change in the game. What's going on? outfit Property DefaultOutfit auto ..................... Function ClearBuffer() ArmorSlot01 = EmptySlot ArmorSlot02 = EmptySlot ArmorSlot03 = EmptySlot ArmorSlot04 = EmptySlot ArmorSlot05 = EmptySlot ArmorSlot06 = EmptySlot ArmorSlot07 = EmptySlot ArmorSlot08 = EmptySlot ArmorSlot09 = EmptySlot ArmorSlot10 = EmptySlot WeaponSlot01 = EmptySlot WeaponSlot02 = EmptySlot WeaponSlot03 = EmptySlot DefaultOutfit = self.GetActorRef().GetActorBase().GetOutfit() EndFunction Function RestoreOutfit() if DefaultOutfit self.GetActorRef().SetOutfit(DefaultOutfit) Debug.notification("DefaultOutfit is restore.") endif EndFunction Scriptname Actor extends ObjectReference Hidden .................. ; Sets the actors outfit and makes him wear it Function SetOutfit( Outfit akOutfit, bool abSleepOutfit = false ) native Edited August 11, 2020 by pxd2050 Link to comment Share on other sites More sharing options...
Recommended Posts