1512 {
1515 if (attachment_count > 0)
1516 {
1519 if (!attachment.IsExplosive())
1520 {
1521 attachment.AddHealth("","",damage);
1522 return true;
1523 }
1524 }
1525 return false;
1526 }
proto native EntityAI GetAttachmentFromIndex(int index)
proto native int AttachmentCount()
Returns count of attachments attached to this item.
script counterpart to engine's class Inventory
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].