---
name: "enableAudioFeature"
type: command
status: ok
groups: ["Sounds"]
arma3_since: "1.64"
locality: {"argument": "global", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/enableAudioFeature
revid: 363491
updated: 2024-04-01T10:41:02Z
---

# enableAudioFeature

*Command · Sounds · Arma 3 v1.64*

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

## Description

Get the state of **or** enable/disable an audio feature. Available features are `"lowpass"` and `"building_interior"`.
- Arma 3 v2.14 it is possible to enable `"building_interior"` on an object placed in a building.
- Arma 3 v2.14 if 'enable' argument is omitted, the command returns the current state of the feature.

## Syntax

### Syntax 1

```sqf
enableAudioFeature [feature, enable]
```

**Parameters:**

- `feature`: [String](../topics/String.md) - `"lowpass"` or `"building_interior"`
- `enable`: [Boolean](../topics/Boolean.md) - (Optional, getter if not provided) [true](../commands/true.md) enable, [false](../commands/false.md), disable

**Returns:** [Boolean](../topics/Boolean.md) - previous state

### Syntax 2

*since arma3 2.14*

```sqf
object enableAudioFeature [feature, enable]
```

**Parameters:**

- `object`: [Object](../topics/Object.md)
- `feature`: [String](../topics/String.md) - `"building_interior"` or `"building_exterior"` only (mutually exclusive)
- `enable`: [Boolean](../topics/Boolean.md) - (Optional, getter if not provided) [true](../commands/true.md) enable, [false](../commands/false.md), disable

**Returns:** [Boolean](../topics/Boolean.md) - previous state

## Examples

### Example 1

```sqf
private _prevState = enableAudioFeature ["lowpass", true];
```

### Example 2

```sqf
private _prevState = pallet enableAudioFeature ["building_interior", true];
```

### Example 3

```sqf
private _currState = pallet enableAudioFeature ["building_interior"];
private _prevState = pallet enableAudioFeature ["building_interior", !_currState];
hint str (_currState == _prevState); // true

private _currState = pallet enableAudioFeature ["building_interior"];
hint str (_currState == _prevState); // false
```

## Multiplayer

To use this command on objects in multiplayer, [remoteExec](../commands/remoteExec.md) it globally with JIP queue enabled:

```sqf
[_obj, ["building_interior", true]] remoteExec ["enableAudioFeature", 0, _obj];
```

## See also

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

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