Join us in Outworldz at www.outworldz.com:9000 or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.
Loading

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
HoverText Floating_Name_Script  

Floating_Name_Script

Floating Name Script By Xylor Baysklef.lsl

Category: HoverText
By : Xylor Baysklef
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for Floating_Name_Script
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Floating_Name_Script_By_Xylor_Baysk_1.lsl
1
2 //////////////////////////////
3 // Floating Name Script By Xylor Baysklef
4 //
5 // This script periodically updates
6 // the text above the object to
7 // display the name of the object
8 ///////////////////////////////
9
10 integer SIDE_TO_CHECK_COLOR = 0;
11
12 UpdateText() {
13 vector RGB = llGetColor(SIDE_TO_CHECK_COLOR);
14
15 // Rotate the Hue 180 degrees, and
16 // invert the Luminance.
17 RGB.x = 1.0 - RGB.x;
18 RGB.y = 1.0 - RGB.y;
19 RGB.z = 1.0 - RGB.z;
20
21 llSetText(llGetObjectName(), RGB, 1.0);
22 }
23
24 default {
25 state_entry() {
26 UpdateText();
27 // Update the text every 5 seconds.
28 llSetTimerEvent(5.0);
29 }
30
31 changed(integer change) {
32 if(change == CHANGED_COLOR) {
33 UpdateText();
34 }
35 }
36
37 timer() {
38 UpdateText();
39 }
40 }// END //

Back to the Best Free Tools in Second Life and OpenSim.