I have a prim that I want to play the 19, 7 second sound parts to play one after another and then stop. I am new to scripting and am trying to assist a friend for a project she is working on.
Thank you for your assistance. There is a collision script in the folder at this time but it only plays the first sound and then stops.
// Sound must be in the object's inventory or it will not work.
// First sound in inventory will be used if more than 1
integer delay = 5; //how many seconds to wait after playing sound before it can be triggered again
default
{
on_rez( integer sparam )
{
llResetScript();
}
state_entry()
{
llOwnerSay("This object must not be set to phantom or it will not work.");
}
collision_start(integer total_number)
{
llPlaySound(llGetInventoryName(INVENTORY_SOUND,0), 1);
llSleep(delay); //keeps it from playing sound over and over
}
}