> 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-all-ai-units-on-team.md).

# Get All AI Units On Team

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

## Description

Returns all currently-spawned AI Units on the team, with options for the AI Unit Count and a Random AI Unit from the list. 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                              |
| ----- | ---- | -------- | ---------------------------------------- |
| Team  | Team | Yes      | Specify which Team to get AI Units from. |

## Outputs

| Output   | Type        | Description                                         |
| -------- | ----------- | --------------------------------------------------- |
| AI Units | Object List | A list of all surviving AI Units on specified team. |

\
\
**Contributors**

AddiCt3d 2CHa0s
