Jump to content

[LE] How to use SetOutfit


pxd2050

Recommended Posts

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?

 

and

outfit Property DefaultOutfit auto

outfit Property DefaultOutfit auto hidden

What's the difference?

Edited by pxd2050
Link to comment
Share on other sites

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 by pxd2050
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...