---
name: "ammoOnPylon"
type: command
status: ok
groups: ["Vehicle Loadouts"]
arma3_since: "1.70"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/ammoOnPylon
revid: 347947
updated: 2023-11-07T05:27:04Z
---

# ammoOnPylon

*Command · Vehicle Loadouts · Arma 3 v1.70*

## Description

Returns ammo count on given pylon (or [false](../commands/false.md) on failure).

## Syntax

```sqf
vehicle ammoOnPylon pylon
```

**Parameters:**

- `vehicle`: [Object](../topics/Object.md)
- `pylon`: [String](../topics/String.md) or [Number](../topics/Number.md) - pylon's name or index

**Returns:** [Number](../topics/Number.md) or [Boolean](../topics/Boolean.md) - [false](../commands/false.md) on failure

## Examples

### Example 1

```sqf
private _ammoCount = (vehicle player) ammoOnPylon "pylon1";
```

### Example 2

```sqf
hint str (vehicle player ammoOnPylon "pylonCenter");
```

## See also

Arma 3: Vehicle Loadouts · [setAmmoOnPylon](../commands/setAmmoOnPylon.md) · [getCompatiblePylonMagazines](../commands/getCompatiblePylonMagazines.md) · [getPylonMagazines](../commands/getPylonMagazines.md) · [animatePylon](../commands/animatePylon.md) · [animateBay](../commands/animateBay.md) · [setPylonsPriority](../commands/setPylonsPriority.md) · [setPylonLoadout](../commands/setPylonLoadout.md)

## Community notes

**Commy2** — 2017-08-18

The pylon indices start at 1 and not at 0.

<sub>Source: [BI Community Wiki — ammoOnPylon](https://community.bistudio.com/wiki/ammoOnPylon) (revision 347947).</sub>
