---
name: "focusOn"
type: command
status: ok
groups: ["Camera Control", "Remote Control"]
arma3_since: "2.16"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/focusOn
revid: 363319
updated: 2024-03-26T16:41:39Z
---

# focusOn

*Command · Camera Control, Remote Control · Arma 3 v2.16*

## Description

Returns the person the camera is focused on. If you need the vehicle, see [cameraOn](../commands/cameraOn.md).

## Syntax

```sqf
focusOn
```

**Returns:** [Object](../topics/Object.md) - controlled person or [objNull](../commands/objNull.md) if no unit is controlled

## Examples

### Example 1

```sqf
private _currentlyControlledUnit = focusOn;
```

### Example 2

```sqf
if (isNull player) exitWith { /* no player */ };

if (player == focusOn) then
{
    hint "You are controlling your player unit";
}
else
{
    hint "You are remote-controlling a unit";
};
```

## See also

[switchCamera](../commands/switchCamera.md) · [cameraView](../commands/cameraView.md) · [cameraEffect](../commands/cameraEffect.md) · [cameraOn](../commands/cameraOn.md) · [remoteControl](../commands/remoteControl.md)

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