|
Nyx Divine
never say never!
Join date: 11 Dec 2004
Posts: 1,052
|
09-12-2006 12:14
I am attempting to place a sound in a build. I have never done so before so I'm clueless. I did research the forums and discovered HOW to convert a soundfile so I could import it. OK that's one step taken care of. Now I want to find a script, which I assume I need, to enable my sound when the build is touched. Can anyone out there point me in the right direction?
_____________________
Yes Virginia there is an FIC!
If someone shows you who they are.....believe them! Don't be afraid to go out on a limb, because that's where the fruit is!
|
|
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
|
09-12-2006 12:16
Just something like default { touch_start(integer n) { llPlaySound("sound name", 1.0); } }
will play the sound on touch. Drop the sound file into the prim with the script (or replace "sound name" with "UUID" where UUID is the UUID of the sound file).
|
|
Nyx Divine
never say never!
Join date: 11 Dec 2004
Posts: 1,052
|
09-12-2006 12:21
Gonna try that.......BLESS YOU! I knew it would be so easy for some of you, but a major headache for me 
_____________________
Yes Virginia there is an FIC!
If someone shows you who they are.....believe them! Don't be afraid to go out on a limb, because that's where the fruit is!
|
|
Vares Solvang
It's all Relative
Join date: 26 Jan 2005
Posts: 2,235
|
09-12-2006 12:22
Should also point out that the 1.0 at the end is the volume that the sound will play at. 1.0 can normally be heard from quite far away, so if you don't want everyone in the sim to hear it you might lower that number some.
|
|
Kage Seraph
I Dig Giant Mecha
Join date: 3 Nov 2004
Posts: 513
|
09-12-2006 13:02
Also, is there not a parcel flag that limits spatialization of the sound to one's own parcel only?
|
|
Juliet Godwin
Super Loser
Join date: 5 Sep 2006
Posts: 6
|
09-12-2006 14:12
From: Kage Seraph Also, is there not a parcel flag that limits spatialization of the sound to one's own parcel only? Yes there is.
|
|
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
|
09-12-2006 14:14
"Restrict spatialized sound to parcel". There is also a function which limits the playing of sound to a certain area, too. However, we don't want to make things too complicated here - llPlaySound should be fine.
|
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
09-13-2006 05:44
The following will limit the sound to 5m in any direction, again the 1.0 is the volume. vector pos = llGetPos(); llTriggerSoundLimited(sound,1.0,pos + < 5,5,5 >, pos - <5,5,5>);
|