|
Linnrenate Crosby
Registered User
Join date: 5 Jun 2007
Posts: 49
|
04-12-2009 06:04
Being a complete script noob i still tried to make this simple script. Its purpose is to play 2 sounds after each other with a pause that can be set between the sounds. Should be quite easy right... even for a noob with no patience? WRONG!! So i need help, the source is below and i have only used the "Door open" sound for the purpose of testing. I will add my sound files if it ever will be working like i want. I hope some kind person can help me out. Thanks, Linn float second_sound = 15.0; default { touch_start(integer total_number) { llTriggerSound("Door open", 0.8); llSetTimerEvent(second_sound); llTriggerSound("Door open", 0.8); } }
|
|
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
|
04-12-2009 06:47
You set a timer event but there isn't one in the script in which to play the second sound. Try something like this (insert keys of your choice): key sound1="b18fc99d-d809-c883-0bf1-b4dd3d8fb835"; key sound2="f969b3a0-c1e5-7ecf-8229-8ddd93c06257"; float volume =0.8; float interval = 15.0; default { state_entry() { //llSay(0, "Hello, Avatar!"); } touch_start(integer total_number) { llSetTimerEvent(interval); llTriggerSound(sound1, volume); } timer() { llTriggerSound(sound2,volume); llSetTimerEvent(0.0); } }
|
|
Linnrenate Crosby
Registered User
Join date: 5 Jun 2007
Posts: 49
|
04-12-2009 07:04
yay!!! That made it just as i wanted it to.
Thanks for the help Innula *huggs*
|