|
Jill Vinson
Not a zombie
Join date: 8 Jul 2006
Posts: 10
|
07-16-2006 19:03
Im pretty new to second life but not new to 3d animation. I just learned scripting and am still a bit confused on some.
I have figured out how to make life bars and monsters basically what is needed to make a good rpg in second life, but I have not been able to figure out how to make my avatar or objects play and loop sounds.
I made a walking animation for my licker suit and got it all animated and working but when I walk the sound plays once and stops. I tried changing that but for some reason it just plays once. I put a 0 instead of a 1 right after the sound in
IIPlaySound("Licker Walk", 1)
but when I put it at 0 it doesnt play.
I also tried loop sound but couldnt figure that one out even with the script topics on here to work when i walk.
|
|
KStarfire Rich
Registered User
Join date: 19 Apr 2006
Posts: 8
|
07-16-2006 19:36
Love the Wiki... be the Wiki  Seriously tho, the Wiki is the scripting bible of SL.. what you want is llLoopSound Wiki http://secondlife.com/badgeo/wakka.php?wakka=sound
|
|
Jill Vinson
Not a zombie
Join date: 8 Jul 2006
Posts: 10
|
07-16-2006 19:39
thanks I just followed it but when I walk it plays the first second and stops for some reason. This is the code I have right now if (anim_state != anim_last_state) { if (anim_state == monster_WALK) { turnofflast(anim_walk); if (anim_walk != ""  { llStopSound(); startnew(anim_walk); llLoopSound("Licker walk",1.0); } } if (anim_state == monster_RUN) { turnofflast(anim_run); if (anim_run != ""  { startnew(anim_run); llStopSound(); } }
|
|
Jill Vinson
Not a zombie
Join date: 8 Jul 2006
Posts: 10
|
07-16-2006 19:51
I found it out. I cant put stop in to stop it when he stops. Thanks for the help
|