//for will show you every side of a prim integer i=0; // make an integer variable for counting the sides of the prim
default { state_entry() { llSetText("click to see every face of a prim",<1,1,1>,1); // say what is this does llSetColor(<0,0,1>,ALL_SIDES); }
touch_start(integer total_number) { for(i=0;i<6;i++) //set counter to 0;//if i is less than 6 //increase i by 1 { llSetColor(<1,0,0>,i) ; // make color red,i variable is used for which side llSetText((string)i,<1,1,1>,1);//announce which side is being shown llSleep(3); //wait 3 seconds between changes } } touch_end(integer x) //when for loop is done { llResetScript(); //make script start again } }
|