609 {
610 if( GetInventory().CanAddAttachment( item ) )
611 {
613 }
614 else
615 {
616 for( int i = 0; i < item.GetInventory().GetSlotIdCount(); i++ )
617 {
618 int slot_id = item.GetInventory().GetSlotId(i);
619 EntityAI slot_item = GetInventory().FindAttachment( slot_id );
620 if( slot_item && GetInventory().CanSwapEntitiesEx( item, slot_item ) )
621 {
623 }
624 }
625 }
626 return false;
627 }
override bool PredictiveTakeEntityAsAttachment(notnull EntityAI item)
bool PredictiveSwapEntities(notnull EntityAI item1, notnull EntityAI item2)