---
name: "getSoundControllerResult"
type: command
status: ok
groups: ["Sounds"]
arma3_since: "1.64"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/getSoundControllerResult
revid: 323118
updated: 2022-06-29T22:09:10Z
---

# getSoundControllerResult

*Command · Sounds · Arma 3 v1.64*

## Description

Returns the calculated value of simple expression defined in config. Config could be any config entry, even [mission config](../commands/missionConfigFile.md) entry. It is more important that the vehicle is a transport and not any object. If the expression contains sound controllers, the controller values will be taken from the given vehicle.

## Syntax

```sqf
vehicle getSoundControllerResult config
```

**Parameters:**

- `vehicle`: [Object](../topics/Object.md) - transport vehicle
- `config`: [Config](../topics/Config.md) - path to config entry containing the expression

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

## Examples

### Example 1

```sqf
_result = (vehicle player) getSoundControllerResult (configFile >> "cfgVehicles" >> typeOf (vehicle player) >> "sounds" >> "idle_ext" >> "volume");
```

### Example 2

```sqf
// mission config entry to reverse rain strength:
// myExpression = "rain factor [1,0]";
_result = "PaperCar" createVehicleLocal position player getSoundControllerResult (missionConfigFile >> "myExpression");
```

## See also

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

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