# On AI Unit Killed

![](https://264187692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq39qopWeWNs74JJEWw4C%2Fuploads%2Fgit-blob-7add51cff1a5e4c3acf9d438b2013f439e293034%2Fon-ai-unit-killed.png?alt=media)

## Description

Event called when any AI Unit dies.

## 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 |
| ----- | ---- | -------- | ----------- |
| N/A   | N/A  | N/A      | N/A         |

## Outputs

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

\
\
**Contributors**

AddiCt3d 2CHa0s
