All pastes #605147 Raw Edit

pingpong

public text v1 · immutable
·published 2007-07-05 23:54 UTC
rendered paste body
float gap = 3.0;
float counter = 0.0;

default
{
    state_entry()
    {
        // Activate the timer listener every 2 seconds
        llSetTimerEvent(gap);
    }

    timer()
    {
        counter = counter + gap; 
        vector eul = <90,45,270>; // in Euler form
        eul *= DEG_TO_RAD; //convert to radians
        rotation quat = llEuler2Rot(eul); //convert to quaternion
        llSetRot(quat); //rotate the object
            llSleep(2);
        vector eul2 = <90,30,270>; //in Euler form
        eul2 *= DEG_TO_RAD; //convert to radians
        rotation quat2 = llEuler2Rot(eul2); //convert to quaternion
        llSetRot(quat2); //rotate the object
   
    }    
    
    touch_start(integer total_number) // it's a cat
    {
        llSay(0, "MEOWW");
    }
}