Jump to content

syntax error listed on 0 and 9 merging 2 easy scripts.


Tin Piek
 Share

You are about to reply to a thread that has been inactive for 258 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

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

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

You are about to reply to a thread that has been inactive for 258 days.

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
 Share

×
×
  • Create New...