Flashing Floating Text (Hovertext)

Type: 
LSL Script

Simple floating text (hovertext) that flashes. You can choose the two colors and set the speed used for the flashing effect. Place the script in a prim and it's ready to go.

Source Code: 
string hovertext = "Floating text goes here"; // Edit this and add your own text.
vector color1 = <0.5,0.5,0.5>; // color 1
vector color2 = <1,1,1>; // color 2

float transparancy = 0.75; // transparency of the text (1.0 is solid)
float mytimer = 0.2; // speed  
integer flash = FALSE;


default
{
    state_entry()
    {
            llSetTimerEvent(mytimer);
    }
    timer()
    {
        if (flash == FALSE)
        {
            llSetText(hovertext, color1, transparancy);
            flash = TRUE;
        }
        else
        {
            llSetText(hovertext, color2, transparancy);
            flash = FALSE;
        }
    }
    on_rez(integer start_param)
    {
        llResetScript();
    }
}