Skip to content

Changing player voice volume via script #1238

Answered by Drofseh
taro8 asked this question in Q&A
Discussion options

You must be logged in to vote

acre_sys_gui_volumeLevel is for the colour of the volume bar, acre_api_fnc_setSelectableVoiceCurve will set the actual volume.
Both are local.
Relative values:

acre_sys_gui_volumeLevel | acre_api_fnc_setSelectableVoiceCurve
                       0 | 0.1
                       1 | 0.4
                       2 | 0.7
                       3 | 1
                       4 | 1.3

For shouting:

[1.3] call acre_api_fnc_setSelectableVoiceCurve;

[{
    acre_sys_gui_volumeLevel = 4;
}, [], 1] call CBA_fnc_waitAndExecute;

Not sure if the delay to change the bar colour is required, but it's what I wrote ages ago.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jonpas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants