> 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-ai-units-from-squad.md).

# Get AI Units From Squad

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

## Description

Returns a list of AI Units in the Squad that are still alive. The order of list entries is random.

## Node Type

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

## Inputs

| Input | Type  | Required | Description                         |
| ----- | ----- | -------- | ----------------------------------- |
| Squad | Squad | Yes      | The Squad that the AI Units are in. |

## Outputs

| Output   | Type        | Description                                   |
| -------- | ----------- | --------------------------------------------- |
| AI Units | Object List | List of all AI Units in Squad that are alive. |

\
\
**Contributors**

AddiCt3d 2CHa0s
