2897 {
2898 #ifdef DIAG_DEVELOPER
2899 if (PluginInventoryDebug.Cast(
GetPlugin(PluginInventoryDebug)).IsDesyncRepairEnable())
2900 {
2901 #endif
2903 switch(dst.GetType())
2904 {
2907 CargoBase cargo = dst.GetParent().GetInventory().GetCargo();
2909 {
2911 itemInCargo.GetInventory().GetCurrentInventoryLocation(ilCargoItem);
2912 if (dst.CollidesWith(ilCargoItem))
2913 {
2914 itemsToRepair.Insert(itemInCargo);
2915 }
2916 }
2917 break;
2919 EntityAI entityInAttachment = dst.GetParent().GetInventory().FindAttachment(dst.GetSlot());
2920
2921 if(entityInAttachment)
2922 {
2923 itemsToRepair.Insert(entityInAttachment);
2924 }
2925 break;
2927 EntityAI entityInHands = GetEntityInHands();
2928 if(entityInHands)
2929 {
2930 itemsToRepair.Insert(entityInHands);
2931 }
2932
2933 break;
2934 default:
2935 break;
2936 }
2937
2938 if(itemsToRepair.Count() > 0)
2939 {
2941 }
2942 #ifdef DIAG_DEVELOPER
2943 }
2944 #endif
2945 }
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.