# On Squad Remaining Percent

![](/files/8IxrTEFqHAvSDPUtLMXp)

## Description

Event called when the percent of the remaining AI units in any Squad falls to or below the specified input. The Killing Unit and Death Context are for the most recent death in that squad.

## Node Type

Nodes fall into two basic categories: Data and Execution. This Execution node fires when something happens in the game that triggers it, and starts off the node string.

## Inputs

| Input             | Type   | Required | Description                                                   |
| ----------------- | ------ | -------- | ------------------------------------------------------------- |
| Percent Remaining | Number | Yes      | What percent of surviving AI Units to watch for in any squad. |

## Outputs

| Output        | Type          | Description                                           |
| ------------- | ------------- | ----------------------------------------------------- |
| Killing Unit  | Object        | The Unit that killed the most recent AI in this squad |
| Squad         | Squad         | Which Squad the killed AI belongs to.                 |
| Death Context | Death Context | How the AI died.                                      |

\
\
**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/events-ai/on-squad-remaining-percent.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.
