610 {
611 if (CanEquip())
612 {
613 if ( GetFocusedContainer().IsInherited( ContainerWithCargo ) || GetFocusedContainer().IsInherited( ContainerWithCargoAndAttachments ) )
614 {
615 return GetFocusedContainer().EquipItem();
616 }
617 else
618 {
620 if( item )
621 {
623 return true;
624 }
625 }
626 }
627 return false;
628 }
FindInventoryLocationType
flags for searching locations in inventory
proto native DayZPlayer GetPlayer()
override EntityAI GetFocusedItem()
proto native CGame GetGame()