Script to "Update" NPC Outfit?

Post » Thu Jun 21, 2012 3:17 am

I updated an NPC's outfit in my Plugin and went to go visit them, and for some reason...they were naked o_O. When I called a "resetinventory" command on them in the console, they used my changed outfit instead of being naked...so I was wondering, is there any sort of script command I can write for the NPC that makes them update their outfit to the proper one that my mod adds?

I'd be changing a lot of outfits, so it'd need to be a script that could work regardless of which outfit was set...if thats even possible. Does anyone know?
User avatar
Leonie Connor
 
Posts: 3434
Joined: Mon Mar 12, 2007 4:18 pm

Post » Wed Jun 20, 2012 6:11 pm

I'm pretty sure I read a post around here today mentioning such an inventory "reset" by adding and immediately removing a random item like a dagger in an OnCellAttach Event.

http://www.creationkit.com/OnCellAttach_-_ObjectReference
User avatar
FoReVeR_Me_N
 
Posts: 3556
Joined: Wed Sep 05, 2007 8:25 pm

Post » Wed Jun 20, 2012 10:53 pm

I'm pretty sure I read a post around here today mentioning such an inventory "reset" by adding and immediately removing a random item like a dagger in an OnCellAttach Event.

http://www.creationkit.com/OnCellAttach_-_ObjectReference

Ah that was probably my post. But it doesn't work for outfits at all.
User avatar
Patrick Gordon
 
Posts: 3366
Joined: Thu May 31, 2007 5:38 am

Post » Wed Jun 20, 2012 10:29 pm

I am interested in this also. i did a mod on uthgerd, and as long as she is outside the mannered mare she has her default or equipped outfit. the moment she is released from my service and back in her default location (the Mare), she is naked. very frustrating.
I'll try resetinventory and see how long that lasts. i tried equip item on her and that only worked for as long as i was in that interior. the moment i left, came back in a day, and the interior respawned , she was naked again. : (
User avatar
Lovingly
 
Posts: 3414
Joined: Fri Sep 15, 2006 6:36 am


Return to V - Skyrim