Page 1 of 1

ambient sound tweaking

PostPosted: Sat Oct 18, 2008 2:33 am
by Kierra
Ok so here's what I'm trying to do.

I have my ambient waterfall sound playing and working just fine, but I'd like to set it up so that when you go inside the house, the sound volume decreases by about half.

I'm fairly certain I need to set up a sound region to accomplish this, but I have no idea what the alcscript would need to look like. The Wiki gives script for fadein and fadeout, but I'm thinking that's not exactly what I'm going for. I just want the volume to decrease, not for it to cease all together.

I know enough to know I should know how to do this, but don't :lol:

Help please? :D

~Kia

Re: ambient sound tweaking

PostPosted: Sat Oct 18, 2008 2:54 am
by boblishman
I am pretty sure you can use softvolumes for this ... the wiki has a section on using them ... and using them in more complex ways so as to not completely "block out" all the sound ...

Re: ambient sound tweaking

PostPosted: Sat Oct 18, 2008 2:59 am
by Kierra
Soft volumes :?

Heh, figures. I've been avoiding that section. Guess I'll have to figure out what those do now :lol:

Thanks

~Kia

Re: ambient sound tweaking

PostPosted: Sat Oct 18, 2008 10:28 am
by Trylon
Fortunately we've had a very good softvolume explanation on the wiki nowadays - even I get softvolumes now :D

Re: ambient sound tweaking

PostPosted: Wed Oct 22, 2008 7:33 am
by Christian Walther
I haven't tried sound soft volumes yet (I haven't done anything with sounds yet), but here's what I would try, off the top of my head:

Add a cube in the general shape of your house, make sure its normals point inward, give it the following AlcScript
Code: Select all
AmbientAttenuationSoftvol:
    type: softvolume
    softvolume:
        softdist: 2.0
        instrength: 0.5
        outstrength: 1.0

add this softvolume line to your sound AlcScript
Code: Select all
MySound:
    sound:
        softvolume: AmbientAttenuationSoftvol

and see what happens.