I'm trying to make a quest where you have to retrieve a piece of armor/clothing from a mannequin, imitating the Silver Shroud quest. I've created this armor as a modified version of a piece of clothing from another mod. I have a set of activators (parented together) that use the world models for the armor. They're in the attic of a store in Concord outside the museum. When activated, they set a quest stage that spawns and adds to the player the two pieces of clothing (marked as quest items). The clothing is successfully spawned and added to the player. However, when I equip it, the armor is invisible. If I place the armor on the ground elsewhere and just pick it up, it works fine and is visible when equipped. Armor acquired through the script, however, is invisible; even worse, if I try to wear any pieces of armor that share the same model and material, they too are invisible. It seems as if I can mess around with different pieces of armor and eventually get them to become visible again, but I don't have a reproducible method for doing so. Is there something about how armor can be spawned in and added that makes it not display properly? Maybe to do with resources not loading in right? Below is the code used to add the items, based on the Silver Shroud MS04 quest code:
ObjectReference oClothing1 = Game.GetPlayer().PlaceAtMe(PClothing1)
AliasClothing1.ForceRefTo(oClothing1)
Game.GetPlayer().AddItem(oClothing1)
ObjectReference oClothing2 = Game.GetPlayer().PlaceAtMe(PClothing2)
AliasClothing2.ForceRefTo(oClothing2)
Game.GetPlayer().AddItem(oClothing2)