Arma 3 Scripting

getCustomSoundController

  • Arma 3 v1.86

Command · Markdown · JSON · 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