1160 {
1161 int slotId = InventorySlots.GetSlotIdFromString(slot_name);
1164
1166 if (player)
1167 player.GetCachedEquipment().OnItemAttached(item, slotId, this);
1168
1170 {
1172 {
1174 {
1175 m_ComponentsBank.GetComponent(comp_key).Event_OnItemAttached(item, slot_name);
1176 }
1177 }
1178 }
1179
1180
1181 if (
m_EM && item.GetCompEM())
1182 m_EM.OnAttachmentAdded(item);
1183
1184 GameInventory itemInventory = item.GetInventory();
1187
1190
1193 }
proto native Man GetHierarchyRootPlayer()
Returns root of current hierarchy cast to Man.
ref array< EntityAI > m_AttachmentsWithCargo
ref array< EntityAI > m_AttachmentsWithAttachments
ref ComponentsBank m_ComponentsBank
ref ScriptInvoker m_OnItemAttached
ComponentEnergyManager m_EM
void PropagateExclusionValueRecursive(set< int > values, int slotId)
proto native int GetAttachmentSlotsCount()
proto native CargoBase GetCargo()
cargo
const int COMP_TYPE_COUNT