4151 {
4152
4153
4154
4155
4156 GameInventory attachmentInv = attachment.GetInventory();
4158 {
4159 if (GetHierarchyParent() && !GetHierarchyParent().IsInherited(PlayerBase))
4160 return false;
4161 }
4162
4163 InventoryLocation loc = new InventoryLocation();
4164 attachment.GetInventory().GetCurrentInventoryLocation(loc);
4165 if (loc && loc.
IsValid() && !GetInventory().AreChildrenAccessible())
4166 return false;
4167
4168 return super.CanReceiveAttachment(attachment, slotId);
4169 }
proto native int GetItemCount()
proto native CargoBase GetCargo()
cargo
proto native bool IsValid()
verify current set inventory location