382 {
384 if (pItem)
385 {
386 CargoBase cargo = pItem.GetInventory().GetCargo();
387 if (cargo)
388 {
390 {
392 if (edible)
393 {
395 }
396 }
397 }
398 else
399 {
401 if (edible)
402 {
404 }
405 }
406 }
407 }
proto native int GetItemCount()
proto native EntityAI GetItem(int index)
represents base for cargo storage for entities
void MakeSoundsOnClient(bool soundstate, CookingMethodType cookingMethod=CookingMethodType.NONE)