{"name":"getSoundControllerResult","operator":null,"title":"getSoundControllerResult","type":"command","url":"https://community.bistudio.com/wiki/getSoundControllerResult","revid":323118,"updated":"2022-06-29T22:09:10Z","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 the calculated value of simple expression defined in config. Config could be any config entry, even mission config 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.","syntaxes":[{"syntax":"vehicle getSoundControllerResult config","since":null,"effect":null,"exec":null,"params":[{"name":"vehicle","type":"Object","optional":false,"default":null,"description":"transport vehicle","types":["Object"],"since":null,"text":"vehicle: Object - transport vehicle"},{"name":"config","type":"Config","optional":false,"default":null,"description":"path to config entry containing the expression","types":["Config"],"since":null,"text":"config: Config - path to config entry containing the expression"}],"returns":{"type":"Number","types":["Number"],"description":null,"text":"Number"},"form":"binary","operator":null,"left":{"text":"vehicle","types":["Object"]},"right":{"text":"config","types":["Config"]}}],"examples":[{"text":"```sqf\n_result = (vehicle player) getSoundControllerResult (configFile >> \"cfgVehicles\" >> typeOf (vehicle player) >> \"sounds\" >> \"idle_ext\" >> \"volume\");\n```","code":["_result = (vehicle player) getSoundControllerResult (configFile >> \"cfgVehicles\" >> typeOf (vehicle player) >> \"sounds\" >> \"idle_ext\" >> \"volume\");"]},{"text":"```sqf\n// mission config entry to reverse rain strength:\n// myExpression = \"rain factor [1,0]\";\n_result = \"PaperCar\" createVehicleLocal position player getSoundControllerResult (missionConfigFile >> \"myExpression\");\n```","code":["// mission config entry to reverse rain strength:\n// myExpression = \"rain factor [1,0]\";\n_result = \"PaperCar\" createVehicleLocal position player getSoundControllerResult (missionConfigFile >> \"myExpression\");"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["Arma 3: Sound","getSoundController","getEnvSoundController","getAllEnvSoundControllers","getAllSoundControllers","getCustomSoundController","setCustomSoundController","getCustomSoundControllerCount"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Sounds","Introduced with Arma 3 version 1.64","Scripting Commands"]}