string move = "87d359b2-838d-20e6-bab2-c7b483d413e0";
default
{
state_entry(){
//define current avatar/prim position here
llTarget(llGetPos(), 1.0);
}
not_at_target(){
//Moved
llPlaySound(move, 1.0);
llTarget(llGetPos(), 1.0);
}
}
These forums are CLOSED. Please visit the new forums HERE
script delay |
|
|
Yksrep Xue
Registered User
Join date: 23 Sep 2008
Posts: 4
|
09-23-2008 18:25
can someone help me i want to make the script do a few commands the delay it before it loops the script. ok so what's happening atm is when i move it plays the script but the sound file is 2 seconds long and it keeps only playing the first half a second before it loops. so is there anything i can do so the script waits until the sound file is finished.
string move = "87d359b2-838d-20e6-bab2-c7b483d413e0"; default { state_entry(){ //define current avatar/prim position here llTarget(llGetPos(), 1.0); } not_at_target(){ //Moved llPlaySound(move, 1.0); llTarget(llGetPos(), 1.0); } } |
|
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
09-23-2008 19:35
hmm, maybe increase the range in the llTarget call
_____________________
Dark Heart Emporium
http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020 want more layers for tattoos, specifically for the head? vote here http://jira.secondlife.com/browse/VWR-1449? llDetectedCollision* Functions similar to touch http://jira.secondlife.com/browse/SVC-3369 |
|
Yksrep Xue
Registered User
Join date: 23 Sep 2008
Posts: 4
|
09-23-2008 19:37
hmm, maybe increase the range in the llTarget call Do i found out all i had to imput was llsleep(2.0) or something like that |
|
Cappy Frantisek
Open Source is the Devil!
Join date: 27 Oct 2006
Posts: 400
|
Set Sound Queueing
09-24-2008 07:34
Set Sound Queueing to True - I did it for you in the following:
string move = "87d359b2-838d-20e6-bab2-c7b483d413e0"; default { state_entry(){ //define current avatar/prim position here llTarget(llGetPos(), 1.0); llSetSoundQueueing(TRUE); } not_at_target(){ //Moved llPlaySound(move, 1.0); llTarget(llGetPos(), 1.0); } } Reference - for your benefit http://rpgstats.com/wiki/index.php?title=LlSetSoundQueueing |
|
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
09-25-2008 05:53
ah, very nice function, did not know about that one, i rarely use sounds
_____________________
Dark Heart Emporium
http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020 want more layers for tattoos, specifically for the head? vote here http://jira.secondlife.com/browse/VWR-1449? llDetectedCollision* Functions similar to touch http://jira.secondlife.com/browse/SVC-3369 |