# Was With Vehicle Type

![](https://264187692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq39qopWeWNs74JJEWw4C%2Fuploads%2Fgit-blob-54b43e1ed7e326b66b0a196874fa79aa9d71be8c%2Fwas-with-vehicle-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 Vehicle Type. Unreliable if the player has left the vehicle since the kill.

## 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 by given vehicle type. |
| Vehicle Type  | Vehicle Type  | True     | Which Vehicle Type to check against.                            |

## Outputs

| Output                | Type    | Description                                            |
| --------------------- | ------- | ------------------------------------------------------ |
| Was With Vehicle Type | Boolean | TRUE if kill was made with same Vehicle Type as given. |

\
\
**Contributors**

AddiCt3d 2CHa0s
