Arma 3 Scripting

Command in Sounds

setCustomSoundController

Also available as Markdown and JSON, or read the original wiki page.

Description

Sets value of the specified custom sound controller to be used in simple expressions in config. Returns true if value was set to the controller, false if command fails, for example if vehicle is not a transport or controller name is not recognised.

Important

Custom sound controller name is case sensitive and of the following format:

format ["CustomSoundController%1", _number];

Where _number is a number from 1 to getCustomSoundControllerCount (currently 32)

Syntax

setCustomSoundController [vehicle, controller, value]

Parameters:

Returns: Boolean - true on success

Examples

Example 1

Change value of CustomSoundController1 to 12

setCustomSoundController [vehicle player, "CustomSoundController1", 12];

See also

Arma 3: Sound · getCustomSoundController · getCustomSoundControllerCount · getSoundController · getSoundControllerResult · getAllSoundControllers · getEnvSoundController · getAllEnvSoundControllers