> 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/ai/get-squad-from-ai-unit.md).

# Get Squad From AI Unit

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

## Description

Returns the Squad that the AI Unit belongs to

## Node Type

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

## Inputs

| Input   | Type   | Required | Description                         |
| ------- | ------ | -------- | ----------------------------------- |
| AI Unit | Object | Yes      | The AI Unit to pull the Squad from. |

## Outputs

| Output | Type  | Description                                   |
| ------ | ----- | --------------------------------------------- |
| Squad  | Squad | The Squad belonging to the specified AI Unit. |

\
\
**Contributors**

AddiCt3d 2CHa0s
