Hi Chris,
I would like to store the sound effect volume to a global variable in AC.
I saw there is actionlist can set the values from options data but it seems no actionlist can read the sound effect volume value set from options.
Is there any easy way I can transfer the value of sound effect volume from options to a global variable?
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
You can get the SFX volume with the GetSFXVolume function:
See the Manual's "Variable scripting" chapter for details on how to set a variable's value through script.
To automate this, you can set a Float variable's Link to field to Custom Script, and then hook into the OnDownloadVariable / OnUploadVariable custom events to sync its value to the SFX volume. The Manual's "Linking with custom scripts" chapter in the Variables section covers this technique, but this should do it: