{"name":"getCustomSoundController","operator":null,"title":"getCustomSoundController","type":"command","url":"https://community.bistudio.com/wiki/getCustomSoundController","revid":364165,"updated":"2024-05-05T10:46:42Z","groups":["Sounds"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.86"}],"since":{"game":"arma3","name":"Arma 3","version":"1.86"},"arma3_since":"1.86","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns current value set to the controller (see setCustomSoundController).","syntaxes":[{"syntax":"getCustomSoundController [vehicle, controller]","since":null,"effect":null,"exec":null,"params":[{"name":"vehicle","type":"Object","optional":false,"default":null,"description":"a transport type vehicle. Does not work on characters or buildings","types":["Object"],"since":null,"text":"vehicle: Object - a transport type vehicle. Does not work on characters or buildings"},{"name":"controller","type":"String","optional":false,"default":null,"description":"name of custom sound controller - needs to be full string e.g \"CustomSoundController1\". It goes from \"CustomSoundController1\" to \"CustomSoundController32\"","types":["String"],"since":null,"text":"controller: String - name of custom sound controller - needs to be full string e.g \"CustomSoundController1\". It goes from \"CustomSoundController1\" to \"CustomSoundController32\""}],"returns":{"type":"Number","types":["Number"],"description":null,"text":"Number"},"form":"unary","operator":null,"left":null,"right":{"text":"[vehicle, controller]","types":["Array"]}}],"examples":[{"text":"```sqf\ngetCustomSoundController [vehicle player, \"CustomSoundController1\"];\n```","code":["getCustomSoundController [vehicle player, \"CustomSoundController1\"];"]},{"text":"```sqf\nprivate _allCustomSoundControllers = [];\nfor \"_i\" from 1 to (getCustomSoundControllerCount vehicle player) do\n{\n    _allCustomSoundControllers pushBack getCustomSoundController [vehicle player, format [\"CustomSoundController%1\", _i]];\n};\n```","code":["private _allCustomSoundControllers = [];\nfor \"_i\" from 1 to (getCustomSoundControllerCount vehicle player) do\n{\n\t_allCustomSoundControllers pushBack getCustomSoundController [vehicle player, format [\"CustomSoundController%1\", _i]];\n};"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["Arma 3: Sound","setCustomSoundController","getCustomSoundControllerCount","getSoundController","getSoundControllerResult","getAllSoundControllers","getEnvSoundController","getAllEnvSoundControllers"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Sounds","Introduced with Arma 3 version 1.86","Scripting Commands"]}