1200 {
1201 int slotId = InventorySlots.GetSlotIdFromString(slot_name);
1204
1206 if (player)
1207 player.GetCachedEquipment().OnItemDetached(item, slotId, this);
1208
1210 {
1212 {
1214 {
1215 m_ComponentsBank.GetComponent(comp_key).Event_OnItemDetached(item, slot_name);
1216 }
1217 }
1218 }
1219
1220
1221 if (
m_EM && item.GetCompEM())
1222 m_EM.OnAttachmentRemoved(item);
1223
1226
1229
1232 }
proto native Man GetHierarchyRootPlayer()
Returns root of current hierarchy cast to Man.
void ClearExclusionValueRecursive(set< int > values, int slotId)
ref array< EntityAI > m_AttachmentsWithCargo
ref array< EntityAI > m_AttachmentsWithAttachments
ref ScriptInvoker m_OnItemDetached
ref ComponentsBank m_ComponentsBank
ComponentEnergyManager m_EM
const int COMP_TYPE_COUNT