626 {
627 if( GetInventory().CanAddAttachment( item ) )
628 {
630 }
631 else
632 {
633 for( int i = 0; i < item.GetInventory().GetSlotIdCount(); i++ )
634 {
635 int slot_id = item.GetInventory().GetSlotId(i);
636 EntityAI slot_item = GetInventory().FindAttachment( slot_id );
637 if( slot_item && GetInventory().CanSwapEntitiesEx( item, slot_item ) )
638 {
640 }
641 }
642 }
643 return false;
644 }
override bool PredictiveTakeEntityAsAttachment(notnull EntityAI item)
bool PredictiveSwapEntities(notnull EntityAI item1, notnull EntityAI item2)