|
VonGklugelstein Alter
Bedah Profeshinal Tekstur
Join date: 22 Dec 2007
Posts: 808
|
04-06-2009 05:46
I have been searching for a simple example of a llloopsound that allows you to set the amount of times that the loop plays.
I would also like to know how to set a timer between those repeats.
If anyone could point me in the right direction, I will be greatly appreciative
thanks
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
04-06-2009 10:27
loop is forever (or until stopped by script call) for sounds...
you could try sound queuing instead of looping but that will only give you 2 loops at best unless you time the loop calls
if you know the length of the sound being played, you could either shut off a loop after a certain period, or call the sound with queuing a set number of times... both would use the timer event to control time between calls.
doing either of these, you want to preload the sound right before playing it for a timered version because sounds don't always play in a timely manner and you don't want it shutting off early if it plays late.
preload only work on av's already in range so you don't want to call this only once and then never again, call it each time before you start your sound playing, and give it a little buffer time with llsleep so that's it's done preloading for everyone before it plays
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
VonGklugelstein Alter
Bedah Profeshinal Tekstur
Join date: 22 Dec 2007
Posts: 808
|
04-06-2009 12:40
thanks, its too bad that loops cannot be actually counted - even if you know the length making them perfectly continous is virtually impossible as nothing is ever as it seems.
|