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 Group_Door  

Group_Door

Group Door.lsl

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

the Zip file

Download all files for Group_Door
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Group_Door_1.lsl
1
2 string name=""; // Open to unlock or leave as "" to lock, group can always open
3 default
4 {
6 {
7 llSay(0, "Door 1.0");
8 state open;
9 }
10 }
11
12 state open
13 {
14
15 touch_start(integer total_number)
16 {
17 if(llSameGroup(llDetectedKey(total_number - 1))==1 || name=="open")
18 {
19 llTriggerSound("Door", 0.5);
20
21 rotation rot = llGetRot();
22 rotation delta = llEuler2Rot(<0,0,(-PI/4)+0.1>);
23 rot = delta * rot;
24 llSetRot(rot);
25 llSleep(0.25);
26 rot = delta * rot;
27 llSetRot(rot);
28 state closed;
29 }
30 else
31 {
32 llTriggerSound("bell", 0.7);
33 llWhisper(0,"only group members may enter this area");
34 }
35 }
36 }
37
38 state closed
39 {
41 {
42 llSleep(10.0);
43 llTriggerSound("Door", 0.5);
44
45 rotation rot = llGetRot();
46 rotation delta = llEuler2Rot(<0,0,(PI/4)+-0.1>);
47 rot = delta * rot;
48 llSetRot(rot);
49
50 llSleep(0.25);
51 rot = delta * rot;
52 llSetRot(rot);
53 state open;
54 }
55 }
56 // END //

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