Edward Nussbaum Posted April 14, 2013 Share Posted April 14, 2013 I have a texture spinning slowly on a prim, and I want to be able to touch it and have it return to its original position on the prim (ie - "upright"). How canI do this? Thanks! Link to comment Share on other sites More sharing options...
Rolig Loon Posted April 14, 2013 Share Posted April 14, 2013 You'll have to stop llSetTextureAnim and then restart it (or vice versa). Just use a regular light switch, as in........ i integer gON;default{ touch_start(integer total_number) { if (gON) { llSetTextureAnim(ANIM_ON|SMOOTH|ROTATE|LOOP,ALL_SIDES, 1,1,0,PI*2,10*DEG_TO_RAD); } else { llSetTextureAnim(FALSE,ALL_SIDES, 1,1,0,0,0); } gON = !gON; }} Link to comment Share on other sites More sharing options...
Dora Gustafson Posted April 14, 2013 Share Posted April 14, 2013 Set the mode parameter to FALSE llSetTextureAnim(FALSE, ALL_SIDES, 0, 0, 0.0, 0.0, 1.0); See http://wiki.secondlife.com/wiki/LlSetTextureAnim and http://wiki.secondlife.com/wiki/LlSetLinkTextureAnim Link to comment Share on other sites More sharing options...
Edward Nussbaum Posted April 15, 2013 Author Share Posted April 15, 2013 Thanks Rolig, I'll check it out! 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