---
name: "ppEffectEnable"
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/ppEffectEnable
revid: 363568
updated: 2024-04-07T08:27:59Z
---

# ppEffectEnable

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

## Description

Enable / disable Post Process Effects

> [!IMPORTANT]
> If effect fails to get enabled (can check it with [ppEffectEnabled](../commands/ppEffectEnabled.md)) try adding a little [sleep](../commands/sleep.md) in front of it.

## Syntax

### Syntax 1

```sqf
effect ppEffectEnable enable
```

**Parameters:**

- `effect`: [String](../topics/String.md) - name of the effect
- `enable`: [Boolean](../topics/Boolean.md)

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

### Syntax 2

```sqf
effect ppEffectEnable enable
```

**Parameters:**

- `effect`: [Number](../topics/Number.md) - handle of the effect
- `enable`: [Boolean](../topics/Boolean.md)

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

### Syntax 3

```sqf
effectArray ppEffectEnable enable
```

**Parameters:**

- `effectArray`: [Array](../topics/Array.md) of [Number](../topics/Number.md)s - array of effect handles
- `enable`: [Boolean](../topics/Boolean.md)

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

## Examples

### Example 1

```sqf
"colorCorrections" ppEffectEnable true;
```

### Example 2

```sqf
_hndl ppEffectEnable true;
```

### Example 3

```sqf
[_hndl1, _hndl2] ppEffectEnable true;
```

## See also

Post Process Effects · [ppEffectForceInNVG](../commands/ppEffectForceInNVG.md) · [ppEffectDestroy](../commands/ppEffectDestroy.md) · [ppEffectCreate](../commands/ppEffectCreate.md) · [ppEffectEnabled](../commands/ppEffectEnabled.md) · [ppEffectCommit](../commands/ppEffectCommit.md) · [ppEffectCommitted](../commands/ppEffectCommitted.md) · [ppEffectAdjust](../commands/ppEffectAdjust.md)

## Community notes

**Pi123263** — 2024-04-06

Using ppEffectEnable immediatelly enables/disables the effect. If you want the effect to fade in/out it might be better to use ppEffectAdjust.

If you want to fade out an effect using ppEffectAdjust you can set the values for the command back to the default and then use ppEffectCommit to set the time for the fadeout.

Example:
Activate effect:

```sqf
"colorCorrections" ppEffectAdjust [1,1,0,[0,0,0,0],[0,0,0,0.24],[1,1,1,0],[0.6,0.5,0,0,-0.1,0.4,0.8]]; 
"colorCorrections" ppEffectEnable true; 
"colorCorrections" ppEffectCommit 0;
```

And then fade the effect out over 10 seconds:

```sqf
"colorCorrections" ppEffectAdjust [1,1,0,[0,0,0,0],[1,1,1,1],[0.299, 0.587, 0.114, 0],[-1,-1,0,0,0,0,0]]; 
"colorCorrections" ppEffectCommit 10;
```

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