1513 {
1514 if (attachment)
1515 {
1516 GameInventory attachmentInventory = attachment.GetInventory();
1517 if (attachmentInventory)
1518 {
1520 if (inventory)
1521 {
1522 InventoryLocation il = new InventoryLocation();
1525 {
1528 }
1529 }
1530 }
1531 }
1532 return true;
1533 }
proto native GameInventory GetInventory()
proto native bool GetCurrentInventoryLocation(out notnull InventoryLocation loc)
returns information about current item location
proto native bool GetSlotLock(int slot)
proto native bool IsValid()
verify current set inventory location
proto native int GetSlot()
returns slot id if current type is Attachment