Ploy Vogel
Registered User
Join date: 27 Aug 2004
Posts: 133
|
03-26-2005 03:35
I've made a set of wind chimes and what I want is a script that will play the chime sound, which I have, at certain intervals, say every two minutes or so or even random if possible. Also, to have the sound play on touch.
Eventually I would like the chimes to be able to sway in the wind, not sure if that is possible. There are 4 individual chimes and I am not sure if they can be moved independently.
Anyway, if I can get the sound part working for now that would be great.
Thank you.
|
Garth FairChang
~ Mr FairChang ~
Join date: 24 Jun 2003
Posts: 275
|
03-26-2005 05:11
Untested but try this:
default { state_entry() { llSetTimerEvent(1.0); } timer(); { llPlaySound("Put sound file name here" , 1.0); llSetTimerEvent(llFrand(100.0) + 10.0); }
on_rez(integer num) { llResetScript(); } }
_____________________
Garth FairChang ~Cheeky Brit~ ' Have a nice day  ' http://www.fairchang.com
|
Till Stirling
Crazy Inventor
Join date: 31 Jul 2004
Posts: 124
|
03-26-2005 08:46
I created a gadget name Proximity Sound, which will play a random sound from a list in random intervalls as long as an avatar is within the vicinity. On request it is also available as a networked version with several kinds of triggers. Proximity Sounds is available at all SilverDay Productions Shops. Contact me Inworld if you are interested in the networked version.
Till Stirling
|
Ploy Vogel
Registered User
Join date: 27 Aug 2004
Posts: 133
|
03-26-2005 14:20
Thanks Garth, it works. Just the semi-colon after timer() had to go.
|