> 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/death-context/was-character-type.md).

# Was Character Type

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

## Description

Queries a *DeathContext* from the **On Player Killed** or **On AI Unit Killed** event. Checks if the dead AI unit's *Character Type* and *Species* match the specified input.

## Node Type

Nodes fall into two basic categories: Data and Execution. This node supplies Data for an Execution node.

## Inputs

| Input          | Type           | Required | Description                                         |
| -------------- | -------------- | -------- | --------------------------------------------------- |
| Death Context  | Death Context  | True     | Which Death Context to check if kill was an assist. |
| Character Type | Character Type | True     | Checks if killed unit was this Character Type       |
| Species        | Species        | True     | Checks if killed unit was this Species.             |

## Outputs

| Output                  | Type    | Description                                       |
| ----------------------- | ------- | ------------------------------------------------- |
| Are Same Character Type | Boolean | TRUE if killed Unit matches given Character Type. |
| Are Same Species        | Boolean | TRUE if killed Unit matches given Species.        |

\
\
**Contributors**

AddiCt3d 2CHa0s
