{"name":"getAllEnvSoundControllers","operator":null,"title":"getAllEnvSoundControllers","type":"command","url":"https://community.bistudio.com/wiki/getAllEnvSoundControllers","revid":377626,"updated":"2026-01-02T08:52:06Z","groups":["Sounds"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.64"}],"since":{"game":"arma3","name":"Arma 3","version":"1.64"},"arma3_since":"1.64","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns an array containing the names and values of environmental 2D sound controllers, variables that can be used in simple expressions when configuring sounds.\n\n> [!IMPORTANT]\n> - Controller names are case sensitive\n> - Please note that the name for the wind param for **2D** controller is 'windy', 'wind' being the name for the **3D** controller getAllEnv3DSoundControllers.","syntaxes":[{"syntax":"getAllEnvSoundControllers position","since":null,"effect":null,"exec":null,"params":[{"name":"position","type":"Position","optional":false,"default":null,"description":null,"types":["Position"],"since":null,"text":"position: Position"}],"returns":{"type":"Array with [[\"controllerA\", valueA], [\"controllerB\", valueB], ...], controllers being, in order:","types":["Array"],"description":"`\"rain\"` - `\"night\"` - `\"windy\"` - `\"daytime\"` - `\"meadows\"` - `\"trees\"` - `\"houses\"` - `\"forest\"` - `\"sea\"` - `\"coast\"` - `\"altitudeGround\"` - `\"altitudeSea\"` - `\"shooting\"` - `\"deadbody\"` - `\"fog\"` - Arma 3 v2.08 `\"yearTime\"` - Arma 3 v2.08 `\"ambientTemp\"` - Arma 3 v2.08 `\"snow\"`","text":"Array with [[\"controllerA\", valueA], [\"controllerB\", valueB], ...], controllers being, in order:\n- `\"rain\"`\n- `\"night\"`\n- `\"windy\"`\n- `\"daytime\"`\n- `\"meadows\"`\n- `\"trees\"`\n- `\"houses\"`\n- `\"forest\"`\n- `\"sea\"`\n- `\"coast\"`\n- `\"altitudeGround\"`\n- `\"altitudeSea\"`\n- `\"shooting\"`\n- `\"deadbody\"`\n- `\"fog\"`\n- Arma 3 v2.08 `\"yearTime\"`\n- Arma 3 v2.08 `\"ambientTemp\"`\n- Arma 3 v2.08 `\"snow\"`"},"form":"unary","operator":null,"left":null,"right":{"text":"position","types":["Position"]}}],"examples":[{"text":"```sqf\ngetAllEnvSoundControllers position player;\n/*\n    returns e.g\n    [\n        [\"rain\",0],\n        [\"night\",0],\n        [\"windy\",0.161588],\n        ...\n    ]\n*/\n```","code":["getAllEnvSoundControllers position player;\n/*\n\treturns e.g\n\t[\n\t\t[\"rain\",0],\n\t\t[\"night\",0],\n\t\t[\"windy\",0.161588],\n\t\t...\n\t]\n*/"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["getAllEnv3DSoundControllers","getEnv3DSoundController","allEnv3DSoundSources","selectBestPlaces","getSoundController","getSoundControllerResult","getEnvSoundController","getAllSoundControllers","getCustomSoundController","setCustomSoundController","getCustomSoundControllerCount","Arma 3: Sound"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Sounds","Introduced with Arma 3 version 1.64","Scripting Commands"]}