<div>1. Make new script in object.<br></div><div>2. copy/paste this script: </div><div>default

    
{
    state_entry() {
        llSetText("",<1,1,1>,1);
    }
    }</div><div>3. remove new script again</div><div><br></div><div>This behaviour is normal for floating text; the floating text becomes part of the object, and needs to be set to "" (no text) to disappear.</div>
<br><div class="gmail_quote">2011/3/16 Robert Klein <span dir="ltr"><<a href="mailto:rtkwebman@gmail.com">rtkwebman@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I have a script that puts the current time floating above an object. When I<br>
remove the script from the object contents the text still remains floating<br>
above the object showing the time from when the script was removed. The time<br>
does not continue to update but it will not go away. Anyone else have this<br>
problem and if so how did you get the text to go away without deleting the<br>
object and starting over?<br>
<br>
Here is the script:<br>
<br>
// HoverText Clock Script<br>
// By Ben Linden<br>
//<br>
// Drop on an object to make it display the PST time.<br>
//<br>
// If you are interested in scripting, check out<br>
// the Script Help under the help menu.<br>
<br>
// The double slash means these lines are comments<br>
// and ignored by the computer.<br>
<br>
<br>
<br>
<br>
// Global Variables<br>
// a string is a collection of characters.<br>
string smin; // Represents minutes<br>
string sseconds; //Represens seconds<br>
<br>
// All scripts have a default state, this will be<br>
// the first code executed.<br>
default<br>
{<br>
    // state_entry() is an event handler, it executes<br>
    // whenever a state is entered.<br>
    state_entry()<br>
    {<br>
        // llSetTimerEvent() is a function that sets<br>
        // up a timer event in seconds.<br>
        llSetTimerEvent(2.0);  // call a timer event<br>
                               // every 2 seconds.<br>
    }<br>
<br>
<br>
    // timer() is an event handler, it executes on an<br>
    // interval defined by llSetTimerEvent()<br>
    timer()<br>
    {<br>
       // llFloor is a function that rounds down all numbers.<br>
       // llGetWallClock is a function that returns the time<br>
       // of day in seconds, on a 24 hour clock.<br>
       integer seconds =  llFloor(llGetWallclock());<br>
       // Convert the total number of seconds into a integer (whole number)<br>
       integer min = llFloor(seconds/60);<br>
       // Figure out how many minutes that is<br>
       seconds = seconds - (min*60);<br>
       //Work out the remaining number of seconds<br>
       integer hour = llFloor(min/60);<br>
       // figure out how many hours it represents.<br>
       min = min - (hour*60);<br>
       // figure out the number of minutes remaining<br>
<br>
       // if is a conditional statement, it will only execute if the<br>
conditions are met.<br>
       if(hour > 12) {hour = hour - 12;} // if the hours are greater than<br>
12, convert to 12 hour time<br>
       string shour = (string)hour; //convert the number into a string<br>
       if(min < 10) {smin = "0"+(string)min;} // if less than 10 minutes,<br>
put a 0 in the minute string<br>
       else { smin = (string)min;}<br>
       if(seconds < 10) { sseconds = "0"+(string)seconds;} // if less than<br>
10 sec, put a 0 in the second string<br>
       else {sseconds = (string)seconds;}<br>
<br>
<br>
       string time = shour + ":" + smin; // build the seperate strings into<br>
a complete string, with colons<br>
<br>
       // llSetText is a function that displays a string over the object.<br>
       llSetText(time, ZERO_VECTOR, 1.0); //Display the string in solid<br>
black.<br>
    }<br>
<br>
}<br>
<br>
<br>
Thanks,<br>
<br>
Robert<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://opensim-users.2152040.n2.nabble.com/Floating-text-not-going-away-tp6177053p6177053.html" target="_blank">http://opensim-users.2152040.n2.nabble.com/Floating-text-not-going-away-tp6177053p6177053.html</a><br>

Sent from the opensim-users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Opensim-users mailing list<br>
<a href="mailto:Opensim-users@lists.berlios.de">Opensim-users@lists.berlios.de</a><br>
<a href="https://lists.berlios.de/mailman/listinfo/opensim-users" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-users</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br><div>The Twilight’s Green Illuminate Beam,
</div><div>This Great ImBalance, that I’ve seen,
</div><div>That Trees Got Icy Branches and,
</div><div>The Good In Bad, That God I’ve Been.<br></div><br>