4727 {
4728 #ifdef DIAG_DEVELOPER
4729 if (PluginInventoryDebug.Cast(
GetPlugin(PluginInventoryDebug)).IsDesyncRepairEnable())
4730 {
4731 #endif
4733 switch(dst.GetType())
4734 {
4737 CargoBase cargo = dst.GetParent().GetInventory().GetCargo();
4739 {
4741 itemInCargo.GetInventory().GetCurrentInventoryLocation(ilCargoItem);
4742 if (dst.CollidesWith(ilCargoItem))
4743 {
4744 itemsToRepair.Insert(itemInCargo);
4745 }
4746 }
4747 break;
4749 EntityAI entityInAttachment = dst.GetParent().GetInventory().FindAttachment(dst.GetSlot());
4750
4751 if(entityInAttachment)
4752 {
4753 itemsToRepair.Insert(entityInAttachment);
4754 }
4755 break;
4757 EntityAI entityInHands = GetEntityInHands();
4758 if(entityInHands)
4759 {
4760 itemsToRepair.Insert(entityInHands);
4761 }
4762
4763 break;
4764 default:
4765 break;
4766 }
4767
4768 if(itemsToRepair.Count() > 0)
4769 {
4771 }
4772 #ifdef DIAG_DEVELOPER
4773 }
4774 #endif
4775 }
DayZPlayer GetDayZPlayerOwner()
InventoryLocationType
types of Inventory Location
PluginBase GetPlugin(typename plugin_type)
proto native int GetItemCount()
proto native EntityAI GetItem(int index)
represents base for cargo storage for entities
Result for an object found in CGame.IsBoxCollidingGeometryProxy.