1809 {
1811 {
1812 int slot_id = InventorySlots.GetSlotIdFromString(slot_name);
1813 if (slot_id != InventorySlots.INVALID)
1815 }
1816 return null;
1817 }
proto native GameInventory GetInventory()
proto native EntityAI FindAttachment(int slot)
Returns attached entity in slot (you can use InventorySlots.GetSlotIdFromString(name) to get slot id)
proto native CGame GetGame()