Tin Piek Posted August 17, 2023 Share Posted August 17, 2023 Can anyone help clean this up so I don't get the syntax error? Texture animation and Hover up and down. The error was at the Red Words default { state_entry() { llSetTextureAnim(ANIM_ON | LOOP, ALL_SIDES,7,4,0,0,10.0); } } default { state_entry() { state floatup; } } state floatup { state_entry() { integer p = 0; integer n = 10; for (; p < n; ++p) { llSetPos(llGetPos() + <0,0,0.05>); } state floatdown; } } state floatdown { state_entry() { integer p=0; integer n=10; for (; p < n; ++p) { llSetPos(llGetPos() - <0,0,0.05>); } state floatup; } } I appreciate your help and time, Tin Piek Link to comment Share on other sites More sharing options...
elleevelyn Posted August 17, 2023 Share Posted August 17, 2023 1 hour ago, Tin Piek said: syntax error? there can only be one state named default. You will need to combine the two into one. For example; default { state_entry() { llSetTexture... state floatu... } } Link to comment Share on other sites More sharing options...
Tin Piek Posted August 18, 2023 Author Share Posted August 18, 2023 I will try to give it a go! Thank you Link to comment Share on other sites More sharing options...
Tin Piek Posted August 18, 2023 Author Share Posted August 18, 2023 It works!!!!!!!!! Just the ticket! Thank you again elleevelyn! default { state_entry() { llSetTextureAnim(ANIM_ON | LOOP, ALL_SIDES,7,4,0,0,10.0); state floatup; } } state floatup { state_entry() { integer p = 0; integer n = 10; for (; p < n; ++p) { llSetPos(llGetPos() + <0,0,0.05>); } state floatdown; } } state floatdown { state_entry() { integer p=0; integer n=10; for (; p < n; ++p) { llSetPos(llGetPos() - <0,0,0.05>); } state floatup; } } 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