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 sliding_door_script  

sliding_door_script

sliding door script.lsl

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

the Zip file

Download all files for sliding_door_script
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. sliding_door_script_1.lsl
1
2 integer es;
3 default
4 {
6 {
7 es = 0;
8 }
9 touch_start(integer total_number)
10 {
11 vector er = llGetScale();
12 if(es == 0)
13 {
14 llSetPos(llGetLocalPos() - <er.x*2,0,0>);
15 es = 1;
16 }
17 else
18 {
19 llSetPos(llGetLocalPos() + <er.x*2,0,0>);
20 es = 0;
21 }
22 }
23 }
24 // END //

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