public bool Run(params object[] args) { // Bioware Default _.ExecuteScript("x2_mod_def_unequ", Object.OBJECT_SELF); _skill.OnModuleItemUnequipped(); _perk.OnModuleItemUnequipped(); _helmetToggle.OnModuleItemUnequipped(); return(true); }
public bool Run(params object[] args) { NWObject equipper = Object.OBJECT_SELF; // Bioware Default _.ExecuteScript("x2_mod_def_unequ", equipper); if (equipper.GetLocalInt("IS_CUSTOMIZING_ITEM") == TRUE) { return(true); // Don't run heavy code when customizing equipment. } _skill.OnModuleItemUnequipped(); _perk.OnModuleItemUnequipped(); _helmetToggle.OnModuleItemUnequipped(); _item.OnModuleUnequipItem(); return(true); }