1492 {
1493 CargoBase cargo = GetInventory().GetCargo();
1494 if (cargo)
1495 {
1497 if (item_count > 0)
1498 {
1501 if (!item.IsExplosive())
1502 {
1503 item.AddHealth("","",damage);
1504 return true;
1505 }
1506 }
1507 }
1508 return false;
1509 }
proto native int GetItemCount()
proto native EntityAI GetItem(int index)
represents base for cargo storage for entities
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].