---
name: "getCustomSoundController"
type: command
status: ok
groups: ["Sounds"]
arma3_since: "1.86"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/getCustomSoundController
revid: 364165
updated: 2024-05-05T10:46:42Z
---

# getCustomSoundController

*Command · Sounds · Arma 3 v1.86*

## Description

Returns current value set to the controller (see [setCustomSoundController](../commands/setCustomSoundController.md)).

## Syntax

```sqf
getCustomSoundController [vehicle, controller]
```

**Parameters:**

- `vehicle`: [Object](../topics/Object.md) - a transport type vehicle. Does not work on characters or buildings
- `controller`: [String](../topics/String.md) - name of custom sound controller - needs to be full string e.g "CustomSoundController1". It goes from "CustomSoundController1" to "CustomSoundController32"

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

## Examples

### Example 1

```sqf
getCustomSoundController [vehicle player, "CustomSoundController1"];
```

### Example 2

```sqf
private _allCustomSoundControllers = [];
for "_i" from 1 to (getCustomSoundControllerCount vehicle player) do
{
    _allCustomSoundControllers pushBack getCustomSoundController [vehicle player, format ["CustomSoundController%1", _i]];
};
```

## See also

Arma 3: Sound · [setCustomSoundController](../commands/setCustomSoundController.md) · [getCustomSoundControllerCount](../commands/getCustomSoundControllerCount.md) · [getSoundController](../commands/getSoundController.md) · [getSoundControllerResult](../commands/getSoundControllerResult.md) · [getAllSoundControllers](../commands/getAllSoundControllers.md) · [getEnvSoundController](../commands/getEnvSoundController.md) · [getAllEnvSoundControllers](../commands/getAllEnvSoundControllers.md)

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