4081 {
4082
4083
4084
4085
4086 GameInventory attachmentInv = attachment.GetInventory();
4088 {
4089 if (GetHierarchyParent() && !GetHierarchyParent().IsInherited(PlayerBase))
4090 return false;
4091 }
4092
4093 InventoryLocation loc = new InventoryLocation();
4094 attachment.GetInventory().GetCurrentInventoryLocation(loc);
4095 if (loc && loc.
IsValid() && !GetInventory().AreChildrenAccessible())
4096 return false;
4097
4098 return super.CanReceiveAttachment(attachment, slotId);
4099 }
proto native int GetItemCount()
proto native CargoBase GetCargo()
cargo
proto native bool IsValid()
verify current set inventory location