3536 {
3537 float totalWeight;
3539 {
3540 int i = 0;
3542 if (AttachmentsCount > 0)
3543 {
3544 for (i = 0; i < AttachmentsCount; i++)
3545 {
3547 }
3548 }
3549
3551 if (cargo)
3552 {
3554 for (i = 0; i < cargoCount; i++)
3555 {
3556 totalWeight += cargo.
GetItem(i).GetWeightEx(forceRecalc);
3557 }
3558 }
3559 }
3560 return totalWeight;
3561 }
proto native int GetItemCount()
proto native EntityAI GetItem(int index)
proto native GameInventory GetInventory()
proto native EntityAI GetAttachmentFromIndex(int index)
proto native CargoBase GetCargo()
cargo
proto native int AttachmentCount()
Returns count of attachments attached to this item.