> 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-advanced/assign-ai-unit-to-spawned-squad.md).

# Assign AI Unit To Spawned Squad

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

## Description

Assigns the AI Unit to the spawned Squad

## Node Type

Nodes fall into two basic categories: Data and Execution. This node Executes a function directly in the node string.

## Inputs

| Input   | Type   | Required | Description                                     |
| ------- | ------ | -------- | ----------------------------------------------- |
| AI Unit | Object | Yes      | The AI Unit to be assigned to a Squad.          |
| Squad   | Squad  | Yes      | The Squad that the AI Unit will be assigned to. |

## Outputs

| Output | Type | Description |
| ------ | ---- | ----------- |
| N/A    | N/A  | N/A         |

\
\
**Contributors**

AddiCt3d 2CHa0s
