---
name: "setDefaultCamera"
type: command
status: ok
groups: ["Camera Control"]
arma3_since: "1.10"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/setDefaultCamera
revid: 377593
updated: 2026-01-02T06:59:17Z
---

# setDefaultCamera

*Command · Camera Control · Arma 3 v1.10*

## Description

Sets the position and direction for the camera used after camera is set on no object (log out view when leaving MP game for example)

## Syntax

```sqf
setDefaultCamera [position, direction]
```

**Parameters:**

- `position`: [PositionASL](../topics/Position.md#positionasl) - position of the camera
- `direction`: [Vector3D](../topics/Vector3D.md) - direction of the camera

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

## Examples

### Example 1

```sqf
setDefaultCamera [[5000, 5000, 200], [1, 1, -1]];
```

### Example 2

Lift camera 100m up above current player position and point downwards:

```sqf
setDefaultCamera [ATLToASL (player modelToWorld [0, 0, 100]), [0, 0, -1]];
```

## See also

[camCreate](../commands/camCreate.md) · [cameraOn](../commands/cameraOn.md) · [cameraView](../commands/cameraView.md) · [cameraEffect](../commands/cameraEffect.md) · [cameraEffectEnableHUD](../commands/cameraEffectEnableHUD.md) · [switchCamera](../commands/switchCamera.md) · [positionCameraToWorld](../commands/positionCameraToWorld.md) · [cameraInterest](../commands/cameraInterest.md) · [setCameraInterest](../commands/setCameraInterest.md) · [getEditorCamera](../commands/getEditorCamera.md) · [mapCenterOnCamera](../commands/mapCenterOnCamera.md) · [preloadCamera](../commands/preloadCamera.md) · [restartEditorCamera](../commands/restartEditorCamera.md)

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