---
name: "setPiPEffect"
type: command
status: ok
groups: ["Camera Control"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/setPiPEffect
revid: 351291
updated: 2023-11-27T03:13:48Z
---

# setPiPEffect

*Command · Camera Control · Arma 3 v0.50 · introduced in Take On Helicopters v1.00*

## Description

Sets Render Target's visual effect (Picture-in-Picture).

| Mode | Description | Parameters |
|---|---|---|
| 0 | Normal | [0] |
| 1 | Night Vision | [1] |
| 2 | Thermal Imaging | [2] |
| 3 | Color Correction | [3, enabled, brightness, contrast, offset, blend [r,g,b,a], lerp [r,g,b,a], rgb [r,g,b,a]] |
| 7 | Alt. Thermal Imaging 1 (Inverted) | [7] |
| 8 | Alt. Thermal Imaging 2 (Green) | [8] |
| 9..70 | Arma 3 v2.10 Alt. Thermal Imaging 3..64 | *[n]* |

## Syntax

```sqf
name setPiPEffect [effect, optionalParam1, optionalParam2, ...]
```

**Parameters:**

- `name` : [String](../topics/String.md) - render surface reference from Render To Texture
- `effect` : [Number](../topics/Number.md) - effect type
- `optionalParamN`: [Number](../topics/Number.md) - (Optional) parameters based on selected effect

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

## Examples

### Example 1

```sqf
"rendersurface" setPiPEffect [0];
```

### Example 2

```sqf
"rendertarget0" setPiPEffect [3, 1, 1.0, 1.0, 0.0, [0.0, 1.0, 0.0, 0.25], [1.0, 0.0, 1.0, 1.0],  [0.199, 0.587, 0.114, 0.0]];
```

### Example 3

```sqf
private _cam = "camera" camCreate (player modelToWorld [0,-5,2]);
_cam cameraEffect ["internal", "back", "rtt"];
"rtt" setPiPEffect [2];
with uiNamespace do {
    private _pic = findDisplay 46 ctrlCreate ["RscPicture", -1];
    _pic ctrlSetPosition [0,0,1,1];
    _pic ctrlCommit 0;
    _pic ctrlSetText "#(argb,512,512,1)r2t(rtt,1.0)";
};
```

### Example 4

Black & White:

```sqf
"rtt" setPiPEffect [3, 1, 1.0, 0.4, 0, [0,0,0,0], [1,1,1,0], [1,1,1,1]];
```

## See also

Procedural Textures · [camCreate](../commands/camCreate.md) · [cameraEffect](../commands/cameraEffect.md) · Post Process Effects

## Community notes

**Killzone_Kid** — 2017-07-09

If Color Corrections effect has been used, going back to Normal will have no effect. In order to unset Color Corrections, set the 2nd param in it (enable) to 0.

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