Page 1 of 1

Sounds inside a subworld?

PostPosted: Sun Apr 05, 2009 3:11 am
by ametist
Subworlds again :) I have this nice little subworld - a boatride, which works very well. To get it even more realistic I would like to have the water lapping-sound to be heard inside the subworld, and it doesn't... That water-lapping sound region works fine everywhere else, just don't when the avatar is inside the subworld.
Do I have to write that sound into the alscript for the boatride itself? If so, could someone point me to where I should 'place' that within the alscript, please? Or if not, what do I do?
Thanks.
Here's my current alscript:
Show Spoiler

Re: Sounds inside a subworld?

PostPosted: Sun Apr 05, 2009 11:37 am
by D'Lanor
First off, sounds are not tied to subworlds. Subworlds are for physicals. Yours probably behaves like that because your sound is triggered by something physical: a region.

For lapping water sounds there are probably better solutions. Like setting it up as a continuous loop and confining it with a softvolume. Or (if your lake is round) making it a 3D sound which fades away from the lake.

But if you want to keep your current setup you can add it as a soundmsg within your AnimRideFW and AnimRideBW responders. Both with the - play command:

Code: Select all
                      - type: soundmsg
                        params:
                            receivers:   
                              - 0011:<sound emitter>
                            cmds:
                              - play
                              - setvolume
                            volume: 1 #match volume of sound emitter
                        waiton: -1


It is a bit of a sloppy workaround but it should work.

Re: Sounds inside a subworld?

PostPosted: Tue Apr 07, 2009 12:04 am
by ametist
Thanks D'Lanor!
I haven't had time to try your suggestions yet, but I will! Yes, I have the sound triggered by a region right now, the region is compassing the whole lake area. The subworld is inside said region. I'm going to test softvolumes first - haven't done that yet, and aslo adding to the alscript for another test. I'm still learning which ways to go about :)

Re: Sounds inside a subworld?

PostPosted: Tue Apr 07, 2009 4:38 am
by diafero
I guess you will need a region tied to the subworld, too, as you are not in the non-subworld region anymore as soon as you enter the subworld. Even though it is "in there", it might just be ignored for being in the wrong context, i.e. not in the subworld.

Re: Sounds inside a subworld?

PostPosted: Tue Apr 07, 2009 4:49 am
by boblishman
yes... if you give the sound region a subworld property it will work ... but you are still advised to use a softvolume to "contain" the sound ... or you may run into "problems" with a multiplayer environment in the (hopeful) future ... ;)