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

# Get Squad AI Unit Count

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

## Description

Returns the Original Unit Count of a Squad and its Remaining Unit Count as a number or percentage

## 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      | Which Squad node is counting. |

## Outputs

| Output               | Type   | Description                                             |
| -------------------- | ------ | ------------------------------------------------------- |
| Original Unit Count  | Number | Total number of AI Units that spawn with squad.         |
| Remaining Unit Count | Number | Total number of AI Units in squad that are still alive. |
| Percent Remaining    | Number | Percent of AI Units in squad that are still alive.      |

\
\
**Contributors**

AddiCt3d 2CHa0s
