sophy7777 Posted October 23, 2018 Share Posted October 23, 2018 I'm trying to make a script for a rodeo game, so random movement (rotation wise) on a random timer to stop animation and make the avatar stand, i just dont know where to start on this one as never done a timer let alone a random timer before >.< Link to comment Share on other sites More sharing options...
Innula Zenovka Posted October 23, 2018 Share Posted October 23, 2018 Take a look at llFrand http://wiki.secondlife.com/wiki/LlFrand. Let's say you want to ensure the animation runs for at least 10 seconds and, at most, 20. You might then use llSetTimerEvent(10.0 + llFrand(10.0); In fact, that means it will run for at least 10 seconds and at most 19.999999 (I think that's the correct number of decimal points). It will run for a tiny fraction less that 20 seconds, anyway. Start the animation and then use that start the timer. Then, in the timer event, you simply stop the timer -- llSetTimerEvent(0.0); -- and then set about stopping the animation and making the avatar stand up. 1 Link to comment Share on other sites More sharing options...
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