---
name: "getEnv3DSoundController"
type: command
status: ok
groups: ["Sounds"]
arma3_since: "2.08"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/getEnv3DSoundController
revid: 309132
updated: 2022-05-03T11:42:40Z
---

# getEnv3DSoundController

*Command · Sounds · Arma 3 v2.08*

## Description

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

## Syntax

```sqf
object getEnv3DSoundController controller
```

**Parameters:**

- `object`: [Object](../topics/Object.md) - environmental sound source like a tree or a house - see [allEnv3DSoundSources](../commands/allEnv3DSoundSources.md)
- `controller`: [String](../topics/String.md) - name of environmental variable like "trees" or "houses"

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

## Examples

### Example 1

```sqf
_thatTreeOverThere getEnv3DSoundController "rainDrops"; // returns 1
```

## See also

[getEnvSoundController](../commands/getEnvSoundController.md) · [getAllEnv3DSoundControllers](../commands/getAllEnv3DSoundControllers.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 — getEnv3DSoundController](https://community.bistudio.com/wiki/getEnv3DSoundController) (revision 309132).</sub>
