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
Presentations SL_Rotating_Sign  

SL_Rotating_Sign

the Script

Category: Presentations
By : Bill Freese
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for SL_Rotating_Sign
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. SL_Rotating_Sign_1.lsl
1 // rotations in quaternions
2 rotation rot1 = <0.00000, 0.00000, 0.00000, 1.00000>;
3 rotation rot2 = <0.00000, 0.00000, -0.70711, 0.70711>;
4 rotation rot3 = <-0.00000, 0.00000, -1.00000, 0.00000>;
5 rotation rot4 = <0.00000, 0.00000, 0.70711, 0.70711>;
6
7
8 default // rotation_one
9 {
11 {
12 llSetRot(rot1);
13 }
14
15 touch_start(integer total_number)
16 {
17 state rotation_two;
18 }
19 }
20
21
22 state rotation_two
23 {
25 {
26 llSetRot(rot2);
27 }
28
29 touch_start(integer total_number)
30 {
31 state rotation_three;
32 }
33 }
34
35 state rotation_three
36 {
38 {
39 llSetRot(rot3);
40 }
41
42 touch_start(integer total_number)
43 {
44 state rotation_four;
45 }
46 }
47
48 state rotation_four
49 {
51 {
52 llSetRot(rot4);
53 }
54
55 touch_start(integer total_number)
56 {
57 state default;
58 }
59 }

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