AmbientSoundSetDayVolume(object, int)
From NWN Lexicon
Change the volume of the daytime ambient soundtrack in an area.
void AmbientSoundSetDayVolume( object oArea, int nVolume );
Contents |
[edit] Parameters
- oArea
- The area to change.
- nVolume
- The percentage (from 0 - 100) at which to set the volume.
[edit] Description
Set the volume of oArea's daytime ambient soundtrack to nVolume.
[edit] Remarks
This function changes the volume of ambient sound, not ambient music.
Note that this does not effect any change on the "Sound Effects" slider in a Client's options. This is relative to other server-side sound volumes, and is itself affected by the client's sound volume settings
[edit] Version
1.22
[edit] Example
// A trigger's OnEvent script: void main() { // Stop the music. object oArea = GetArea(OBJECT_SELF); MusicBackgroundStop(oArea); // Change the ambient sound settings. AmbientSoundChangeDay (oArea, 46); // al_an_lizrdflk1 AmbientSoundChangeNight (oArea, 46); // al_an_lizrdflk1 AmbientSoundPlay (oArea); // In case it's off AmbientSoundSetDayVolume (oArea, 100); // In case it's too quiet AmbientSoundSetNightVolume(oArea, 100); // In case it's too quiet // Start the music up again. DelayCommand(30.0, MusicBackgroundPlay(oArea)); }
[edit] See Also
functions: | AmbientSoundSetNightVolume, AmbientSoundStop |
author: Iskander Merriman