zzzz

Join us in Phaze Demesnes or follow us:

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 + OpenSim

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 {
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 //