Jump to content

EquipItem works for Armor but not Clothes?


Recommended Posts

This is a new issue regarding a function I posted about earlier (fixed the last issue).

 

I am trying to write a function that transfers one characters worn Armor and clothes to another character.

 

The Armor part works. But, it seems to leave out anything equipped on the BODY slot (ie clothes).

 

Is there some unique way that those items have to be equipped via Papyrus? Do they have to be added before Armor? Or after?

 

Here is the function so far:

 

Function copyClothes(Actor a, Actor b)

Form[] clothesList = New Form[0]
int i = 0
While i <= 31
Form clothesItem = a.GetWornItem(i).Item
    If clothesItem != None
     clothesList.Add(clothesItem)
    EndIf
    i = i + 1
EndWhile

i = 0
While i <= clothesList.Length
     a.RemoveItem(clothesList[i], 1, true, b)
    b.EquipItem(clothesList[i], false, true)
    i = i + 1
EndWhile
EndFunction

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

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