---
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: 378351
updated: 2026-04-02T16:33:07Z
---

# 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 [Object](../topics/Object.md)s - 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)

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