Description
Returns current value set to the controller (see setCustomSoundController).
Syntax
getCustomSoundController [vehicle, controller]
Parameters:
vehicle: Object - a transport type vehicle. Does not work on characters or buildingscontroller: String - name of custom sound controller - needs to be full string e.g "CustomSoundController1". It goes from "CustomSoundController1" to "CustomSoundController32"
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