---
name: "camSetRelPos"
type: command
status: ok
groups: ["Camera Control"]
arma3_since: "0.50"
locality: {"argument": "local", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/camSetRelPos
revid: 377388
updated: 2026-01-02T06:43:59Z
---

# camSetRelPos

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

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

## Description

Sets the position of the given camera relative to its target, set with [camSetTarget](../commands/camSetTarget.md). Needs a call to [camCommit](../commands/camCommit.md) to be conducted.

> [!IMPORTANT]
> Since it sets relative position to the target, the [camSetTarget](../commands/camSetTarget.md) command should be executed already, before [camSetRelPos](../commands/camSetRelPos.md).

## Syntax

```sqf
camera camSetRelPos position
```

**Parameters:**

- `camera`: [Object](../topics/Object.md) - object of type "camera"
- `position`: [PositionRelative](../topics/Position.md#positionrelative)

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

## Examples

### Example 1

```sqf
_cam camSetTarget _car;
_cam camSetRelPos [0,10,8];
```

## See also

[camSetPos](../commands/camSetPos.md)

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