518 {
519 if (CanTakeToInventory())
520 {
521 LeftArea left_area = LeftArea.Cast(
GetParent() );
523 if (left_area)
524 {
525 if (GetFocusedContainer().IsInherited( ContainerWithCargo ) || GetFocusedContainer().IsInherited( ContainerWithCargoAndAttachments ))
526 {
527 return GetFocusedContainer().TransferItem();
528 }
529 else
530 {
532 if( item )
533 {
535 return true;
536 }
537 }
538 }
539 else
540 {
541 if (!GetFocusedContainer().IsInherited( ContainerWithCargo ) && !GetFocusedContainer().IsInherited( ContainerWithCargoAndAttachments ))
542 {
544 if( item )
545 {
547 return true;
548 }
549 }
550 }
551 }
552 return false;
553 }
FindInventoryLocationType
flags for searching locations in inventory
proto native DayZPlayer GetPlayer()
override EntityAI GetFocusedItem()
proto native CGame GetGame()