132 {
133 if (CanTakeToInventory())
134 {
136 SlotsIcon focused_icon = GetFocusedSlotsIcon();
137 if( entity && !entity.IsLockedInSlot() && (!focused_icon || !focused_icon.
IsOutOfReach()) )
138 {
139 PlayerBase player = PlayerBase.Cast(
g_Game.GetPlayer() );
141 return true;
142 }
143 }
144 return false;
145 }
FindInventoryLocationType
flags for searching locations in inventory