631 {
632 LeftArea left_area = LeftArea.Cast(
GetParent() );
634 if (CanTakeToInventory())
635 {
636
637 if (left_area)
638 {
639 if (GetFocusedContainer().IsInherited( ContainerWithCargo ) || GetFocusedContainer().IsInherited( ContainerWithCargoAndAttachments ))
640 {
641 return GetFocusedContainer().TransferItem();
642 }
643 else
644 {
646 if( item )
647 {
649 return true;
650 }
651 }
652 }
653 else
654 {
655 if (!GetFocusedContainer().IsInherited( ContainerWithCargo ) && !GetFocusedContainer().IsInherited( ContainerWithCargoAndAttachments ))
656 {
658 if (item)
659 {
661 return true;
662 }
663 }
664 }
665 }
666 return false;
667 }
FindInventoryLocationType
flags for searching locations in inventory
proto native DayZPlayer GetPlayer()
override EntityAI GetFocusedItem()
proto native CGame GetGame()