> 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-player-weapons.md).

# Get Player Weapons

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

## Description

Returns object references to the weapons in the Player's inventory. Pins return an invalid reference if the Player 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                    |
| ------ | ------ | -------- | ------------------------------ |
| Player | Object | Yes      | The player to get weapons for. |

## Outputs

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

\
\
**Contributors**

AddiCt3d 2CHa0s
