4175 {
4176
4177
4178
4179
4182 {
4183 if (GetHierarchyParent() && !GetHierarchyParent().IsInherited(
PlayerBase))
4184 return false;
4185 }
4186
4188 attachment.GetInventory().GetCurrentInventoryLocation(loc);
4189 if (loc && loc.
IsValid() && !GetInventory().AreChildrenAccessible())
4190 return false;
4191
4192 return super.CanReceiveAttachment(attachment, slotId);
4193 }
proto native int GetItemCount()
proto native CargoBase GetCargo()
cargo
script counterpart to engine's class Inventory
proto native bool IsValid()
verify current set inventory location