Laxxor Posted May 2 Posted May 2 (edited) getInventory gives a complete inventory for a warehouse, but seems to exclude items that are fully depleted, instead of returning "0" as the qty. If i use warehouse.getItemCount(wh, <depletedItem>) it will return 0, showing the warehouse has the item, but its qty is 0. why does getInventory exclude 0-qty items? Edited May 16 by Laxxor images were broken or otherwise not displaying
draconus Posted May 7 Posted May 7 Seems logical and by design. Why would it show what's not there? That's what it means exactly when qty=0. https://wiki.hoggitworld.com/view/DCS_func_getInventory Win10 i7-10700KF 32GB RTX4070S Quest 3 T16000M VPC CDT-VMAX TFRP FC3 F-14A/B F-15E CA SC NTTR PG Syria
Laxxor Posted May 16 Author Posted May 16 (edited) No it is entirely illlogical to tell you everything you have some of but not tell you that which you have nothing of.... If you wrote your shopping lists on that premise you would find you are missing something when you went to use it... Quote "what do we need?" "um... nothing! every shelf that has things on it, has at least one thing!" .... "please load some GBU-12s on my plane" "no, we don't have any" "?" the issue is that when QTY is 0, the game doesnt even aknowledge there IS such an ordinance shelf that is empty, but _does_ continue to list it in the airfield resources UI. Edited May 16 by Laxxor
Recommended Posts