Difference between revisions of "Reset button.lsl"

From Second Life Wiki
Jump to navigation Jump to search
m (lsl code tagging)
m (language tags to <source>)
 
Line 1: Line 1:
<lsl>
<source lang="lsl2">


// Global Variables
// Global Variables
Line 21: Line 21:
}
}


</lsl>
</source>

Latest revision as of 12:52, 25 January 2015

// Global Variables

integer toAllChannel = -255;                    // general channel - linked message

default
{
    state_entry()
    {
        
    }

    touch_start(integer total_number)
    {
        llMessageLinked(LINK_SET, toAllChannel, "reset", NULL_KEY);
        llSetColor( <0,0,0> , ALL_SIDES);
        llSleep(.2);
        llSetColor( <255, 255, 255>, ALL_SIDES);
    }
}