---
name: "getEnvSoundController"
type: command
status: ok
groups: ["Sounds"]
arma3_since: "1.64"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/getEnvSoundController
revid: 319197
updated: 2022-05-13T09:23:21Z
---

# getEnvSoundController

*Command · Sounds · Arma 3 v1.64*

## Description

Returns value of the specified controller, see [getAllEnvSoundControllers](../commands/getAllEnvSoundControllers.md)

## Syntax

```sqf
position getEnvSoundController controller
```

**Parameters:**

- `position`: [Position](../topics/Position.md)
- `controller`: [String](../topics/String.md) - name of environmental variable like "trees" or "houses"

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

## Examples

### Example 1

```sqf
position player getEnvSoundController "trees"; //0.3333
```

## See also

[getAllEnv3DSoundControllers](../commands/getAllEnv3DSoundControllers.md) · [getEnv3DSoundController](../commands/getEnv3DSoundController.md) · [allEnv3DSoundSources](../commands/allEnv3DSoundSources.md) · [selectBestPlaces](../commands/selectBestPlaces.md) · [getSoundController](../commands/getSoundController.md) · [getSoundControllerResult](../commands/getSoundControllerResult.md) · [getAllEnvSoundControllers](../commands/getAllEnvSoundControllers.md) · [getAllSoundControllers](../commands/getAllSoundControllers.md) · [getCustomSoundController](../commands/getCustomSoundController.md) · [setCustomSoundController](../commands/setCustomSoundController.md) · [getCustomSoundControllerCount](../commands/getCustomSoundControllerCount.md) · Arma 3: Sound

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