{"name":"getEnvSoundController","operator":null,"title":"getEnvSoundController","type":"command","url":"https://community.bistudio.com/wiki/getEnvSoundController","revid":319197,"updated":"2022-05-13T09:23:21Z","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 value of the specified controller, see getAllEnvSoundControllers","syntaxes":[{"syntax":"position getEnvSoundController controller","since":null,"effect":null,"exec":null,"params":[{"name":"position","type":"Position","optional":false,"default":null,"description":null,"types":["Position"],"since":null,"text":"position: Position"},{"name":"controller","type":"String","optional":false,"default":null,"description":"name of environmental variable like \"trees\" or \"houses\"","types":["String"],"since":null,"text":"controller: String - name of environmental variable like \"trees\" or \"houses\""}],"returns":{"type":"Number","types":["Number"],"description":null,"text":"Number"},"form":"binary","operator":null,"left":{"text":"position","types":["Position"]},"right":{"text":"controller","types":["String"]}}],"examples":[{"text":"```sqf\nposition player getEnvSoundController \"trees\"; //0.3333\n```","code":["position player getEnvSoundController \"trees\"; //0.3333"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["getAllEnv3DSoundControllers","getEnv3DSoundController","allEnv3DSoundSources","selectBestPlaces","getSoundController","getSoundControllerResult","getAllEnvSoundControllers","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"]}