public void UpdateEquipment()
{
var Helmet = equipment.GetItemInSlot(EquipLocation.Helmet) as ArmorConfig;
var Body = equipment.GetItemInSlot(EquipLocation.Body) as ArmorConfig;
var Trousers = equipment.GetItemInSlot(EquipLocation.Trousers) as ArmorConfig;
var Boots = equipment.GetItemInSlot(EquipLocation.Boots) as ArmorConfig;
var Gloves = equipment.GetItemInSlot(EquipLocation.Gloves) as ArmorConfig;
var Necklace = equipment.GetItemInSlot(EquipLocation.Necklace) as ArmorConfig;
if (Helmet == null) EquipArmor(defaultarmorHelmet);
else EquipArmor(Helmet);
if (Body == null) EquipArmor(defaultarmorBody);
else EquipArmor(Body);
if (Trousers == null) EquipArmor(defaultarmorTrousers);
else EquipArmor(Trousers);
if (Boots == null) EquipArmor(defaultarmorBoots);
else EquipArmor(Boots);
if (Gloves == null) EquipArmor(defaultarmorGloves);
else EquipArmor(Gloves);
if (Necklace == null) EquipArmor(defaultarmorNecklace);
else EquipArmor(Necklace);
}
I tried, logically should replace the base armorā¦ No despawn game object(armor).