# Get Squad Definition AI Unit Count

![](/files/SSsB7OG4xgxvrvCx43CU)

## Description

Returns the number of AI units contained in the Squad Definition and checks if the whole squad can be spawned

## 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 Definition | Squad Definition | Yes      | The Squad Definition to use to count AI that currently have it. |

## Outputs

| Output                | Type    | Description                                                   |
| --------------------- | ------- | ------------------------------------------------------------- |
| AI Unit Count         | Number  | Count of AI Units with selected Squad Definition.             |
| Can Spawn Whole Squad | Boolean | If TRUE, the Squad with this definition can be spawned again. |

\
\
**Contributors**

AddiCt3d 2CHa0s


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.thescriptersguild.com/scripting/nodes/ai-advanced/get-squad-definition-ai-unit-count.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
