---
name: "forgetTarget"
type: command
status: ok
groups: ["Unit Control", "Groups"]
arma3_since: "1.70"
locality: {"argument": "local", "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/forgetTarget
revid: 332529
updated: 2022-12-01T12:21:06Z
---

# forgetTarget

*Command · Unit Control, Groups · Arma 3 v1.70*

Locality: arguments **local** · effect **global**

## Description

Resets the info a group has about a target, forcing [knowsAbout](../commands/knowsAbout.md) value to 0.

## Syntax

```sqf
group forgetTarget target
```

**Parameters:**

- `group`: [Group](../topics/Group.md) or [Object](../topics/Object.md) - group itself or unit in a group
- `target`: [Object](../topics/Object.md) - group target

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

## Examples

### Example 1

```sqf
soldier1 forgetTarget soldier2;
```

### Example 2

Give enemyBob some amnesia:

```sqf
onEachFrame { enemyBob forgetTarget player };
```

## See also

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

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