Spin

integer Switch = FALSE;

default
{
    state_entry()
    {
        llTargetOmega(<0,0,1>,0,1.0); // stop spinning
    }
        touch_start(integer total_number)
    {
        if(Switch == FALSE)
        {
            Switch = TRUE;
            llSay(0, "On");
            llTargetOmega(<0,0,1>,PI,1.0); //start spinning
        }
        else
        {
            Switch = FALSE;
            llSay(0, "Off");
            llTargetOmega(<0,0,1>,0,1.0); // stop spinning
        }
    }
}
Navigation

Alternative Startseite
Helpdesk
Links
Maps
Radio
Suchmaschine


Drucken/exportieren