4201 {
4202
4203
4204
4205
4206 GameInventory attachmentInv = attachment.GetInventory();
4208 {
4209 if (GetHierarchyParent() && !GetHierarchyParent().IsInherited(PlayerBase))
4210 return false;
4211 }
4212
4213 InventoryLocation loc = new InventoryLocation();
4214 attachment.GetInventory().GetCurrentInventoryLocation(loc);
4215 if (loc && loc.
IsValid() && !GetInventory().AreChildrenAccessible())
4216 return false;
4217
4218 return super.CanReceiveAttachment(attachment, slotId);
4219 }
proto native int GetItemCount()
proto native CargoBase GetCargo()
cargo
proto native bool IsValid()
verify current set inventory location