aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/bin/assets/ScriptsAssetSet/KanEd-Test05.lsl
diff options
context:
space:
mode:
authorJustin Clarke Casey2009-01-12 18:00:46 +0000
committerJustin Clarke Casey2009-01-12 18:00:46 +0000
commitfb8faa8336ddb795ccd6840259b06a2608350a57 (patch)
tree1f4977b9918d416602af88709e15aecf9499b969 /bin/assets/ScriptsAssetSet/KanEd-Test05.lsl
parent* Remove FunSLUDP code since this has moved to http://forge.opensimulator.org... (diff)
downloadopensim-SC-fb8faa8336ddb795ccd6840259b06a2608350a57.zip
opensim-SC-fb8faa8336ddb795ccd6840259b06a2608350a57.tar.gz
opensim-SC-fb8faa8336ddb795ccd6840259b06a2608350a57.tar.bz2
opensim-SC-fb8faa8336ddb795ccd6840259b06a2608350a57.tar.xz
* Apply http://opensimulator.org/mantis/view.php?id=2913
* Add the KanEd scripts to the standard library * Thanks Fly-Man-
Diffstat (limited to 'bin/assets/ScriptsAssetSet/KanEd-Test05.lsl')
-rw-r--r--bin/assets/ScriptsAssetSet/KanEd-Test05.lsl30
1 files changed, 30 insertions, 0 deletions
diff --git a/bin/assets/ScriptsAssetSet/KanEd-Test05.lsl b/bin/assets/ScriptsAssetSet/KanEd-Test05.lsl
new file mode 100644
index 0000000..86727cf
--- /dev/null
+++ b/bin/assets/ScriptsAssetSet/KanEd-Test05.lsl
@@ -0,0 +1,30 @@
1default
2{
3 state_entry()
4 {
5 llSay( 0, "Hello, Avatar!");
6 vector startPoint = llGetPos();
7 }
8
9 touch_start(integer total_number)
10 {
11 llSay( 0, "Touched." );
12
13 // Define a rotation of 10 degrees around the Y-axis.
14 rotation Y_10 = llEuler2Rot( < 0, 10 * DEG_TO_RAD, 0 > );
15
16 // now rotate the object 10 degrees in the X-Z plane during
17 // each loop iteration. note that each call to llSetRot
18 // causes a .2 second delay.
19 integer i;
20 for( i = 1; i < 100; i++ )
21 {
22 // rotate object in the X-Z plane around its own Y-axis.
23 rotation newRotation = llGetRot() * Y_10;
24
25 llSetRot( newRotation );
26 }
27 llSay( 0, "Rotation stopped" );
28 }
29}
30