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
Invisibility Invisibility  

Invisibility

Invisibility.lsl

Category: Invisibility
By : Anonymous
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for Invisibility
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Invisibility_1.lsl
1
2 1// remove this number for the script to work.
3
4 // global variables
5 string texture_a="invis1"; // use a "blank texture here. The easiest
6 // way to get it is by selecting the "blank"
7 // from the texture picker and then copying
8 // it to your inventory. Either call it
9 // "invis1" or change the value for texture_a
10 // to be the name you choose.
11
12 key texture_b="ffffffff-ffff-ffff-ffff-ffffffffffff";
13 // The above is a key for an "image not available" texture which is
14 // globally available. I chose it because it is simple and easy for
15 // just about any client to load.
16
17
18 // gloabl functions
19
20 // This is the function that makes an object "invisible"
21 invis()
22 {
23 llSetTexture(texture_a,ALL_SIDES);
25 llScaleTexture(500.0,500.0,ALL_SIDES);
26 llSetTexture(texture_b,4);
27 llSetTexture(texture_a,4);
28 llSetTexture(texture_a,2);
29 llSetTexture(texture_b,2);
30 }
31
32
33 default
34 {
36 {
37 invis(); // call the invisibility function on entry.
38 }
40 {
41 invis(); // Call it upon being rezzed :-)
42 }
43
44 }
45 // END //

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