Join us in Outworldz at 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.

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
Curtain Zillas_Curtain_script_V1  


Copyright (C) 2008 Zilla Larsson
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3, as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see

Category: Curtain
By : Connely Aura
Created: 2011-04-29 Edited: 2011-04-29
Worlds: Second Life

the Zip file

Download all files for Zillas_Curtain_script_V1
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Zillas_Curtain_script_V1_1.lsl
1 vector offset = <1,0,0>; //Prim moves/changes size along this local coordinate
2 float hi_end_fixed = FALSE; //Which end of the prim should remain in place when size changes?
3 //The one with the higher (local) coordinate?
4 float min = 0.6; //The minimum size of the prim relative to its maximum size
5 integer ns = 10; //Number of distinct steps for move/size change
8 default {
10 offset *= ((1.0 - min) / ns) * (offset * llGetScale());
11 hi_end_fixed -= 0.5;
12 }
14 touch_start(integer detected) {
15 integer i;
17 PRIM_POSITION, llGetLocalPos() + ((hi_end_fixed * offset) * llGetLocalRot())]);
18 while((++i) < ns);
19 offset = - offset;
20 }
21 }

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