# Was With Weapon Type

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

## Description

Queries a _DeathContext_ from the **On Player Killed** or **On AI Unit Killed** event. Returns true if the killing blow came from a matching Weapon Type.

## 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 with given Weapon Type. |
| Weapon Type   | Weapon Type   | True     | Which Weapon Type to check against, if kill was made by it.      |

## Outputs

| Output               | Type    | Description                                             |
| -------------------- | ------- | ------------------------------------------------------- |
| Was With Weapon Type | Boolean | TRUE if unit was killed with same Weapon Type as given. |

\
\
**Contributors**

AddiCt3d 2CHa0s
