---
name: "ignoreTarget"
type: command
status: ok
groups: ["Object Detection"]
arma3_since: "2.18"
locality: {"argument": "global", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/ignoreTarget
revid: 369769
updated: 2024-10-08T15:08:58Z
---

# ignoreTarget

*Command · Object Detection · Arma 3 v2.18*

Locality: arguments **global**

## Description

Sets a target to be ignored by this Group. It will not appear in [nearTargets](../commands/nearTargets.md) and the group will not notice its presence. [targetKnowledge](../commands/targetKnowledge.md) can be used to check if a target is currently ignored. While a unit is ignored, [reveal](../commands/reveal.md) has no effect.

## Syntax

### Syntax 1

```sqf
group ignoreTarget target
```

**Parameters:**

- `group` : [Object](../topics/Object.md) or [Group](../topics/Group.md) - which receives revealing information
- `target`: [Object](../topics/Object.md) - which would be ignored

**Returns:** [Nothing](../topics/Nothing.md)

### Syntax 2

```sqf
group ignoreTarget [target, isIgnored]
```

**Parameters:**

- `group` : [Object](../topics/Object.md) or [Group](../topics/Group.md) - which receives revealing information
- `target`: [Object](../topics/Object.md) - which would be ignored
- `isIgnored`: [Boolean](../topics/Boolean.md) - whether the target should be ignored

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
aiGroup ignoreTarget player
```

## See also

[knowsAbout](../commands/knowsAbout.md) · [targetsQuery](../commands/targetsQuery.md) · [targetsAggregate](../commands/targetsAggregate.md) · [nearTargets](../commands/nearTargets.md) · [reveal](../commands/reveal.md) · [targetKnowledge](../commands/targetKnowledge.md)

<sub>Source: [BI Community Wiki — ignoreTarget](https://community.bistudio.com/wiki/ignoreTarget) (revision 369769).</sub>
