1174 {
1175 int slotId = InventorySlots.GetSlotIdFromString(slot_name);
1178
1180 if (player)
1181 player.GetCachedEquipment().OnItemDetached(item, slotId, this);
1182
1184 {
1186 {
1188 {
1189 m_ComponentsBank.GetComponent(comp_key).Event_OnItemDetached(item, slot_name);
1190 }
1191 }
1192 }
1193
1194
1195 if (
m_EM && item.GetCompEM())
1196 m_EM.OnAttachmentRemoved(item);
1197
1200
1203
1206 }
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