736 {
738 return false;
739
740 if(m_Src2 && m_Dst2 && m_Src2.GetItem() != m_Dst2.GetItem())
741 return false;
742
743 bool test1 = false;
745 if (
GetSrcEntity() && inHands && m_Dst && m_Dst.IsValid())
746 {
747 test1 = GameInventory.CheckSwapItemsRequest(
m_Player,
m_Src, m_Src2, m_Dst, m_Dst2, GameInventory.c_MaxItemDistanceRadius);
748 #ifdef ENABLE_LOGGING
749 if ( LogManager.IsInventoryHFSMLogEnable() )
750 {
751 if (!test1)
753 }
754 #endif
755 }
756 return test1;
757 }
ref InventoryLocation m_Src
proto native EntityAI GetItem()
returns item of current inventory location