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 Make_an_entire_prim_set_invisible_o  

Make_an_entire_prim_set_invisible_o

The Owner can chat 'switch 0' without the quotes to make a prim set invisible. 'switch 1' will make it visible. 'switch 0.5' will make it half-visible.

Category: Invisibility
By : Ferd Frederix
Created: 2011-07-28 Edited: 2011-07-28
Worlds: Second Life

the Zip file

Download all files for Make_an_entire_prim_set_invisible_o
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Make_an_entire_prim_set_invisible_o_1.lsl

This script by Ferd Frederix may be used in any manner, modified, and republished.  Unless specified otherwise, my scripts are always free and open source.  Objects made with these scripts may be sold with no restrictions.  All I ask is that you point others to this location should they ask you about it and to not sell this script, unless it is for $0 L. Please help improve my work by reporting bugs and improvements.

1 onoff(float alpha)
2 {
4 integer i ;
5 for (i = 0; i<j;i++)
6 {
7 llSetLinkAlpha( i, alpha, ALL_SIDES);
8 }
9 }
10 default
11 {
13 {
14 onoff(1); // let thenm see it rez
15 llListen(0, "", llGetOwner(), "");
16 }
17 // you need an event to listen for chatted commands
18 listen( integer channel, string name, key id, string message )
19 {
20 list args = llParseString2List(message,[" "],[]); // convert string to a list of words at spaces
21 if(llList2String(args,0) == "switch")
22 {
23 onoff(llList2Float(args,1)); // send the float to the onoff subroutine
24 }
25 }
26
27 }

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