---
name: "doTarget"
type: command
status: ok
groups: ["Unit Control"]
arma3_since: "0.50"
locality: {"argument": "local", "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/doTarget
revid: 379336
updated: 2026-10-30T23:52:58Z
---

# doTarget

*Command · Unit Control · Arma 3 v0.50 · introduced in Operation Flashpoint v1.00*

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

## Description

Order the given unit(s) to target the given target (without radio messages).\
Targeting can be stopped by

```sqf
_unit doWatch objNull;
```

or

```sqf
_unit commandWatch objNull;
```

## Syntax

```sqf
unit doTarget target
```

**Parameters:**

- `unit`: [Object](../topics/Object.md) or [Array](../topics/Array.md) of [Objects](../topics/Object.md) - a single unit or array of units
- `target`: [Object](../topics/Object.md)

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

## Examples

### Example 1

```sqf
_ESoldier1 doTarget _WSoldier1;
```

## See also

[assignedTarget](../commands/assignedTarget.md) · [commandTarget](../commands/commandTarget.md) · [doWatch](../commands/doWatch.md) · [doFire](../commands/doFire.md)

## Community notes

**Joris** — 2017-03-28

Targeting may not work as expected when trying to target a unit on the same side (friendly).

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