> For the complete documentation index, see [llms.txt](https://wiki.thescriptersguild.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.thescriptersguild.com/scripting/nodes/inventory/get-weapon-magazine-capacity.md).

# Get Weapon Magazine Capacity

![](https://692276616-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN06Vv6nlwviUQ4hI2Kkd%2Fuploads%2Fgit-blob-f3c97042fbee61639344de806eb772f0d01935ce%2Fget-weapon-magazine-capacity.png?alt=media)

## Description

Returns the maximum number of rounds of the Weapon magazine. Returns 0 if the weapon does not have a magazine.

## Node Type

Nodes fall into two basic categories: Data and Execution. This node supplies Data for an Execution node.

## Inputs

| Input  | Type   | Required | Description                                 |
| ------ | ------ | -------- | ------------------------------------------- |
| Weapon | Object | Yes      | Which weapon to check magazine capacity on. |

## Outputs

| Output         | Type   | Description                             |
| -------------- | ------ | --------------------------------------- |
| Maximum Rounds | Number | Total number of rounds weapon can hold. |

\
\
**Contributors**

AddiCt3d 2CHa0s
