# Get Unit Weapons

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

## Description

Returns object references to the weapons in the Unit's inventory. Pins return an invalid reference if the Unit does not have a weapon.

## Node Type

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

## Inputs

| Input       | Type        | Required | Description                                    |
| ----------- | ----------- | -------- | ---------------------------------------------- |
| Unit        | Object      | Yes      | Which unit to get weapons for.                 |
| Weapon Type | Weapon Type | Yes      | The weapon type to check if player is holding. |

## Outputs

| Output           | Type   | Description                            |
| ---------------- | ------ | -------------------------------------- |
| Equipped Weapon  | Object | Unit's equipped weapon if it exists.   |
| Unquipped Weapon | Object | Unit's unequipped weapon if it exists. |

\
\
**Contributors**

AddiCt3d 2CHa0s
