Arma 3 Scripting

Command in Sounds

getCustomSoundController

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

Description

Returns current value set to the controller (see setCustomSoundController).

Syntax

getCustomSoundController [vehicle, controller]

Parameters:

Returns: Number

Examples

Example 1

getCustomSoundController [vehicle player, "CustomSoundController1"];

Example 2

private _allCustomSoundControllers = [];
for "_i" from 1 to (getCustomSoundControllerCount vehicle player) do
{
    _allCustomSoundControllers pushBack getCustomSoundController [vehicle player, format ["CustomSoundController%1", _i]];
};

See also

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