diff options
author | Justin Clarke Casey | 2009-01-12 18:00:46 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2009-01-12 18:00:46 +0000 |
commit | fb8faa8336ddb795ccd6840259b06a2608350a57 (patch) | |
tree | 1f4977b9918d416602af88709e15aecf9499b969 /bin/assets/ScriptsAssetSet/KanEd-Test08.lsl | |
parent | * Remove FunSLUDP code since this has moved to http://forge.opensimulator.org... (diff) | |
download | opensim-SC_OLD-fb8faa8336ddb795ccd6840259b06a2608350a57.zip opensim-SC_OLD-fb8faa8336ddb795ccd6840259b06a2608350a57.tar.gz opensim-SC_OLD-fb8faa8336ddb795ccd6840259b06a2608350a57.tar.bz2 opensim-SC_OLD-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-Test08.lsl')
-rw-r--r-- | bin/assets/ScriptsAssetSet/KanEd-Test08.lsl | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/bin/assets/ScriptsAssetSet/KanEd-Test08.lsl b/bin/assets/ScriptsAssetSet/KanEd-Test08.lsl new file mode 100644 index 0000000..d29428c --- /dev/null +++ b/bin/assets/ScriptsAssetSet/KanEd-Test08.lsl | |||
@@ -0,0 +1,23 @@ | |||
1 | default | ||
2 | { | ||
3 | state_entry() | ||
4 | { | ||
5 | llSay( 0, "Hello, Avatar! Touch to launch me straight up."); | ||
6 | llSetStatus( 1, TRUE ); // turn on physics. | ||
7 | } | ||
8 | |||
9 | touch_start(integer total_number) | ||
10 | { | ||
11 | vector start_color = llGetColor( ALL_SIDES ); // save current color. | ||
12 | llSetColor( < 1.0, 0.0, 0.0 > , ALL_SIDES ); // set color to red. | ||
13 | |||
14 | float objMass = llGetMass(); | ||
15 | float Z_force = 20.0 * objMass; | ||
16 | |||
17 | llApplyImpulse( < 0.0, 0.0, Z_force >, FALSE ); | ||
18 | |||
19 | llSay( 0, "Impulse of " + (string)Z_force + " applied." ); | ||
20 | llSetColor( start_color , ALL_SIDES ); // set color to green. | ||
21 | } | ||
22 | } | ||
23 | |||