1584 {
1585 GameInventory inventory = GetInventory();
1587 if (attachment_count > 0)
1588 {
1589 int random_pick = Math.RandomInt(0, attachment_count);
1591 if (!attachment.IsExplosive())
1592 {
1593 attachment.AddHealth("","",damage);
1594 return true;
1595 }
1596 }
1597 return false;
1598 }
proto native EntityAI GetAttachmentFromIndex(int index)
proto native int AttachmentCount()
Returns count of attachments attached to this item.