---
name: "targetKnowledge"
type: command
status: ok
groups: ["Object Detection"]
arma3_since: "1.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/targetKnowledge
revid: 377833
updated: 2026-01-03T04:31:58Z
---

# targetKnowledge

*Command · Object Detection · Arma 3 v1.50*

## Description

Returns unit's knowledge about target.

## Syntax

```sqf
unit targetKnowledge target
```

**Parameters:**

- `unit`: [Object](../topics/Object.md)
- `target`: [Object](../topics/Object.md)

**Returns:** [Array](../topics/Array.md) with [knownByGroup, knownByUnit, lastSeen, lastThreat, side, errorMargin, position, ignoreTarget]
- knownByGroup: [Boolean](../topics/Boolean.md) - target known by group
- knownByUnit: [Boolean](../topics/Boolean.md) - target known by the unit
- lastSeen: [Number](../topics/Number.md) - last time the target was seen by the unit
- lastThreat: [Number](../topics/Number.md) - last time the target endangered the unit
- side: [Side](../topics/Side.md) - target side
- errorMargin: [Number](../topics/Number.md) - position error
- position: [Position](../topics/Position.md) - target position
- Arma 3 v2.18 ignoreTarget: [Boolean](../topics/Boolean.md) - target is ignored ([ignoreTarget](../commands/ignoreTarget.md))

## Examples

### Example 1

```sqf
private _allInfo = _soldierOne targetKnowledge _jeepOne;
_allInfo params ["_knownByGroup", "_knownByUnit", "_lastSeen", "_lastThreat", "_side", "_errorMargin", "_position", "_ignoreTarget"];
```

### Example 2

```sqf
private _posError = (_soldierOne targetKnowledge _jeepOne) select 5;
```

## See also

[knowsAbout](../commands/knowsAbout.md) · [targets](../commands/targets.md) · [targetsQuery](../commands/targetsQuery.md) · [nearTargets](../commands/nearTargets.md) · [targetsAggregate](../commands/targetsAggregate.md) · [reveal](../commands/reveal.md) · [forgetTarget](../commands/forgetTarget.md) · [setTargetAge](../commands/setTargetAge.md) · [getHideFrom](../commands/getHideFrom.md) · [ignoreTarget](../commands/ignoreTarget.md)

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