Maxxis Akula
Registered User
Join date: 21 Nov 2005
Posts: 2
|
01-07-2006 15:50
Hello! I have a sound preview vendor, which can be scrolled through with next/previous buttons, and each one played when someone hits the middle play button. What I need, is for the sound to only play in a certain area (Within my vendor limits perhaps, or a bit larger) or have the volume lowered. The first option preferably  I have no experience in scripting whatsover, and the Wiki left me confused. I'd like to have this set up ASAP, as I'm renting vendor space, and the owner has said he doesn't want to sound to reach too far. Any help would be appreciated, thanks!
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
01-07-2006 16:15
the most optimal way would be to have the land sectioned off, then under land restriced spaclised sound to this area, since your renting this probally isnt a viable option (unless your land lord is super nice, not that busy or both) these would be your option B's http://secondlife.com/badgeo/wakka.php?wakka=llSetSoundRadiushttp://secondlife.com/badgeo/wakka.php?wakka=llTriggerSoundLimitedthe first one restricts the sound from exiting a imaginary sphere llSetSoundRadius(5.0) would cover the area of a 10m sphere.. the second one allows you to define a area with a pirm set the script and then sound wont exit that ... i dont fully understand the second one heh hope it helps
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
01-07-2006 16:20
note that the sphere will form around the center point of the prim containing the script, so you might have to put a invisi cube or whatever above the rest of the vendor (linked) to not invade the space below you (if there is any), and acc to the wiki it doesnt work, ive never tried ... =/
|
Introvert Petunia
over 2 billion posts
Join date: 11 Sep 2004
Posts: 2,065
|
01-07-2006 16:21
This is a bit of a toughy as it is almost entirely dependent on the individual client preferences which have much greater control over loudness and area than the scripter does. There is a llSetSoundRadius, which as the Wiki notes seems to have no effect at all. What I would recommend is that you use llPlaySound("sound name", 0.2). The volume will play the sound at 20% of the maximum of whatever they player has set their preferences for. The ability of everyone else to hear the sound is completely based on their own settings - for example, someone could have their settings such that they hear that sound halfway across the sim and there is not a thing you can do about it. If the sounds are obnoxiousish (e.g. gunfire, screams) you may wish to demo a very short version to minimize annoyance. Also, the closer you zoom into the prim that has the script in it, the louder the sound so if desperate, you could post a sign to that effect. Sorry, but that's the way SL treats sound. Good luck.
|
Maxxis Akula
Registered User
Join date: 21 Nov 2005
Posts: 2
|
01-07-2006 18:40
The owner sectioned it off for me! *cheers*
Thank you very much for the reply!
|