---
name: "setCamShakeParams"
type: command
status: ok
groups: ["Camera Control"]
arma3_since: "0.50"
locality: {"argument": null, "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/setCamShakeParams
revid: 364174
updated: 2024-05-05T10:46:45Z
---

# setCamShakeParams

*Command · Camera Control · Arma 3 v0.50 · introduced in Arma 2: Operation Arrowhead v1.50*

Locality: effect **local**

## Description

Sets camera shake parameters. Will not have any effect until shake is started via [addCamShake](../commands/addCamShake.md).

## Syntax

```sqf
setCamShakeParams [posCoef, vertCoef, horzCoef, bankCoef, interpolation]
```

**Parameters:**

- `posCoef`: [Number](../topics/Number.md) - strength of positional movement (how far the whole position can change in X,Y&Z). Should not be bigger than **0.1** to prevent the camera from moving into or behind the player
- `vertCoef`: [Number](../topics/Number.md) - strength of vertical camera pan (up/down), practical range: 0..10
- `horzCoef`: [Number](../topics/Number.md) - strength of horizontal camera pan (left/right), practical range: 0..10
- `bankCoef`: [Number](../topics/Number.md) - strength of camera tilt/bank, practical range: 0..20
- `interpolation`: [Boolean](../topics/Boolean.md) - if [true](../commands/true.md), then transitions in the different shaking directions will be smoother

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

## Examples

### Example 1

```sqf
setCamShakeParams [0.1, 1, 1, 1, true];
```

## See also

[setCamShakeDefParams](../commands/setCamShakeDefParams.md) · [addCamShake](../commands/addCamShake.md) · [enableCamShake](../commands/enableCamShake.md) · [resetCamShake](../commands/resetCamShake.md)

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