# Modify AI Targetable Object Methods

![](https://692276616-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN06Vv6nlwviUQ4hI2Kkd%2Fuploads%2Fgit-blob-981911a1e359de6d80b6e4d5c1169b0087e48a33%2Fmodify-ai-targetable-object-methods.png?alt=media)

## Description

Sets whether an Object that is currently registered to be targetable by AI can be attacked by grenades and vehicles. Attacks with melee weapons can also be discouraged.

## 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                                                        |
| ------------------------ | ------- | -------- | ------------------------------------------------------------------ |
| Object                   | Object  | Yes      | The object in the AI Targetable list that is being modified.       |
| Grenade Targeting        | Boolean | Yes      | Whether or not AI will attack Object with grenades.                |
| Vehicle Targeting        | Boolean | Yes      | Whether or not AI will attack Object with vehicles.                |
| Discourage Melee Weapons | Boolean | Yes      | Whether or not AI will prioritize melee when attacking the Object. |

## Outputs

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

\
\
**Contributors**

AddiCt3d 2CHa0s
