---
name: "commandTarget"
type: command
status: ok
groups: ["Groups"]
arma3_since: "0.50"
locality: {"argument": "local", "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/commandTarget
revid: 318640
updated: 2022-05-13T09:21:13Z
---

# commandTarget

*Command · Groups · 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 (via the radio). Command given to the player, puts a red square with words Target and Distance on player's HUD at target location. If player in vehicle and has radar facilities, it also adds target marker to the radar.

## Syntax

```sqf
unit commandTarget target
```

**Parameters:**

- `unit`: [Object](../topics/Object.md)
- `target`: [Object](../topics/Object.md) or [Array](../topics/Array.md) of [Object](../topics/Object.md)s

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

## Examples

### Example 1

```sqf
_ESoldier1 commandTarget _WSoldier1;
```

### Example 2

```sqf
player commandTarget [ted, bill];
```

## Multiplayer

This command is only effective when used on local units. When used on a remote unit, this command will create radio dialogue on the machine the unit is local to, but the unit will not target the target.

## See also

[assignedTarget](../commands/assignedTarget.md) · [doTarget](../commands/doTarget.md)

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