1134 {
1135 int slotId = InventorySlots.GetSlotIdFromString(slot_name);
1138
1140 if (player)
1141 player.GetCachedEquipment().OnItemAttached(item, slotId, this);
1142
1144 {
1146 {
1148 {
1149 m_ComponentsBank.GetComponent(comp_key).Event_OnItemAttached(item, slot_name);
1150 }
1151 }
1152 }
1153
1154
1155 if (
m_EM && item.GetCompEM())
1156 m_EM.OnAttachmentAdded(item);
1157
1158 GameInventory itemInventory = item.GetInventory();
1161
1164
1167 }
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