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
Door Door_or_swimming_pool_cover  

Door_or_swimming_pool_cover

For a swimming pool, put this into the root prim of a two-prim swimming pool cover, or door. It hollows out to 90% the second prim.

Category: Door
By : Ferd Frederix
Created: 2012-12-02 Edited: 2012-12-02
Worlds: Second Life

the Zip file

Download all files for Door_or_swimming_pool_cover
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Door_or_swimming_pool_cover_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
2 integer open;
3
4
5 default
6 {
8 {
9 llSetLinkPrimitiveParamsFast(2, [PRIM_TYPE,PRIM_TYPE_BOX, PRIM_HOLE_SQUARE, <0,1,0>, 0.9, <0,0,0>, <1,1,0>, <0,0,0>]);
10 }
11
12 touch_start(integer total_number)
13 {
14 open = ~ open;
15 if(!open)
16 {
17 llSetLinkPrimitiveParamsFast(2, [PRIM_TYPE,PRIM_TYPE_BOX, PRIM_HOLE_SQUARE, <0,1,0>, 0.9, <0,0,0>, <1,1,0>, <0,0,0>]);
18 }
19 else
20 {
21 llSetLinkPrimitiveParamsFast(2, [PRIM_TYPE,PRIM_TYPE_BOX, PRIM_HOLE_SQUARE, <0,1,0>, 0, <0,0,0>, <1,1,0>, <0,0,0>]);
22 }
23 }
24 }

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