188 {
189 if (m_ActiveIndex == 0)
190 {
191 if (CanTakeToInventory())
192 {
194 if (item_in_hands &&
GetGame().
GetPlayer().GetHumanInventory().CanRemoveEntityInHands() && !
GetGame().
GetPlayer().GetInventory().HasInventoryReservation(item_in_hands, null))
195 {
197 {
198 m_MainWidget.FindAnyWidget("Cursor").Show( false );
199 m_MainWidget.FindAnyWidget("hands_preview_root").SetAlpha( 0.7 );
200 return true;
201 }
202 }
203 }
204 }
205 else if (GetFocusedContainer())
206 {
207 return GetFocusedContainer().TransferItem();
208 }
209 return false;
210 }
FindInventoryLocationType
flags for searching locations in inventory
proto native DayZPlayer GetPlayer()
proto native CGame GetGame()