> 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-waves/end-current-wave.md).

# End Current Wave

![](https://692276616-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN06Vv6nlwviUQ4hI2Kkd%2Fuploads%2Fgit-blob-d8f0facf8518acb801972d79e1029ed2f1a1ab65%2Fend-current-wave.png?alt=media)

## Description

Ends the current wave, optionally killing the Active Squads from the current wave and Straggler Squads left over from previous waves

## 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                                                                       |
| --------------------- | -------------- | -------- | --------------------------------------------------------------------------------- |
| Wave Manager          | Wave Manager   | Yes      | The Wave Manager that will stop spawning squads.                                  |
| Victory Reason        | Victory Reason | Yes      | The Victory Reason that the wave was ended. (Custom 1-8, Extermination, Duration) |
| Kill Active Squads    | Boolean        | Yes      | Whether or not to kill any currently remaining AI from this wave.                 |
| Kill Straggler Squads | Boolean        | Yes      | Whether or not to kill any currently remaining AI from other waves.               |

## Outputs

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

\
\
**Contributors**

AddiCt3d 2CHa0s
