|
ApocalypseJoe Picnic
Registered User
Join date: 19 Apr 2007
Posts: 2
|
09-27-2007 19:47
I'm working on a pose ball script, but this issue has more to do with scripting than animations. I'd like to include an internal facial animation to run simultaneously with my homemade animation. There is an option to do this in the SL animation upload dialogue, but it's actually not implemented. Anyway, I decided to call the animation from the poseball script, and that works but the facial animations (like "express_suprise_emote"  are very short while my animation is looped. So, I used llSetTimerEvent() to create a timer that called the animation every 3 seconds. I also included llStopAnimantion() to end the animation when the avatar de-links from the poseball. Some of you may see where this is going... What happens is that when I get off the poseball the llStopAnimation() kills the animation currently running. But 3 seconds later the timer fires (even though the avatar is no longer linked to the ball) and the facial animation runs all over again and continues to do so. Needless to say both me and my avatar looked very surprised. Does anyone have a suggestion about how stop this crazy thing?
|
|
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
|
09-27-2007 20:19
Why not just clear the timer--llSetTimerEvent(0) -- in the CHANGED_LINK handler where you stop the animations? Or am I missing the problem?
|
|
ApocalypseJoe Picnic
Registered User
Join date: 19 Apr 2007
Posts: 2
|
Thank You
09-27-2007 20:51
Wow great, I knew there was probably something simple I wasn't thinking of. I really appreciate the help. That solves the problem. I'm not a total n00b, however the last programming language I studied was PASCAL and I'm pretty rusty. You're my hero!
|