7991 {
7993 if (count > 0)
7994 {
7996 {
7998
8000 {
8001 InventoryLocation il = new InventoryLocation();
8002 for (int i = count - 1; i >= 0 ; i--)
8003 {
8005 if (itemToDelete != null)
8006 {
8007 itemToDelete.GetInventory().GetCurrentInventoryLocation(il);
8008 }
8009
8011 {
8013 }
8014 }
8015 }
8016 else
8017 {
8018 for (int j = count - 1; j >= 0 ; j--)
8019 {
8021 if (itemToDelete == null)
8022 {
8024 }
8025 else
8026 {
8027 itemToDelete.Delete();
8029 }
8030 }
8031 }
8032 }
8033 }
8034 }
InventoryLocationType
types of Inventory Location
proto native int GetType()
returns type of InventoryLocation
ref array< EntityAI > m_ItemsToDelete
ItemBase GetItemInHands()
proto native CGame GetGame()