Jump to content

anyone know of a rodeo script?

Recommended Posts

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 >.< 


Share this post

Link to post
Share on other sites

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.

  • Like 1

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...