Okay, so in my store I have a phantom prim along the length/width of the floor, and when people walk on it, a small invisible prim follows them leaving a trail of sparkley particles. It's just a little effect for my store and the prim deletes as soon as they step off them phantom prim. Now, I thought it would be cool to add some little sound effects to make it cute to go with the particles when people move. However, this has not been easy....
The prim that gets rezzed controls the particle engine, and I also want it to trigger the sound, but it also has to move. A and C work but B (sound) doesn't.
But, I needed it to be under the sensor area still, and so far as I know, I can't make a timer event in nother event (despite how much I want it to >.>). So I made the counter and put all the stuff I needed to in a new argument within the argument containing "llSetLinkPrimitiveParamsFast".
That ALMOST worked, but the counter wasn't so once again, the 3 short audio files I had were being smashed together and played as one. (several retries by editing the counter and even adding "float gap = 0.2" also failed)
So as a final effort that I knew would fail but decided to do anyway, was to put everything under that last part in the timer event (it was already there to end the script). And, like I thought it would, the sound only played when the prim stopped moving.
SO! How do I get my sound(s) to play properly under the "Sensor" event where I need them to? Any ideas?
Question
Queenship3001
Okay, so in my store I have a phantom prim along the length/width of the floor, and when people walk on it, a small invisible prim follows them leaving a trail of sparkley particles. It's just a little effect for my store and the prim deletes as soon as they step off them phantom prim. Now, I thought it would be cool to add some little sound effects to make it cute to go with the particles when people move. However, this has not been easy....
The prim that gets rezzed controls the particle engine, and I also want it to trigger the sound, but it also has to move. A and C work but B (sound) doesn't.
Here is the script I'm using:
Now I've tried a few things.
Initially I was using llTriggerSound under the "sensor" section, so it would play the sound when the prim and avatar moved. The initial sound was too long and was spammed pretty bad, so I figured I'd need a timer and shorter sounds to play at intervals, so I found: http://community.secondlife.com/t5/Scripting/One-after-the-play-from-several-sound/td-p/499736
But, I needed it to be under the sensor area still, and so far as I know, I can't make a timer event in nother event (despite how much I want it to >.>). So I made the counter and put all the stuff I needed to in a new argument within the argument containing "llSetLinkPrimitiveParamsFast".
That ALMOST worked, but the counter wasn't so once again, the 3 short audio files I had were being smashed together and played as one. (several retries by editing the counter and even adding "float gap = 0.2" also failed)
So as a final effort that I knew would fail but decided to do anyway, was to put everything under that last part in the timer event (it was already there to end the script). And, like I thought it would, the sound only played when the prim stopped moving.
SO! How do I get my sound(s) to play properly under the "Sensor" event where I need them to? Any ideas?
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now