Background for Fallout 4
Member of the SoundCategory script
voidfunctionSetVolume(floatafVolume)Native

Description

Wiki Description

Set a volume modifier on any sounds in the given sound category.

Documentation Comment

Sets a volume modifier for all sounds in this category (from 0 to 1)


Caveats


Parameters

floatafVolume

CK Wiki Description

The modifier to apply (from 0 to 1)


Examples

; Increase the volume of the special quest sounds while setting the ambient dungeon volumes to the inverse.
MySpecialQuestSoundsCategory.SetVolume(fspecialQuestSoundsVolume)
AmbientDungeonCategory.SetVolume(1.0 - fspecialQuestSoundsVolume)

Auto-Generated Example

float myFloat__afVolume

mySoundCategory__toCallFunctionOn.SetVolume(myFloat__afVolume)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.