aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/bin/assets/ScriptsAssetSet/llApplyImpulse.lsl
diff options
context:
space:
mode:
authorJeff Ames2008-01-26 10:34:49 +0000
committerJeff Ames2008-01-26 10:34:49 +0000
commit20215c3d30fb55bf232bff1b3d6652d82e00b798 (patch)
tree19fce94014cafb1a235b3874b7bde8bc92767415 /bin/assets/ScriptsAssetSet/llApplyImpulse.lsl
parentRemoved ScriptServer.csproj from svn. (diff)
downloadopensim-SC-20215c3d30fb55bf232bff1b3d6652d82e00b798.zip
opensim-SC-20215c3d30fb55bf232bff1b3d6652d82e00b798.tar.gz
opensim-SC-20215c3d30fb55bf232bff1b3d6652d82e00b798.tar.bz2
opensim-SC-20215c3d30fb55bf232bff1b3d6652d82e00b798.tar.xz
Rewrote svn properties handling script in python. Added more file types.
Diffstat (limited to 'bin/assets/ScriptsAssetSet/llApplyImpulse.lsl')
-rw-r--r--bin/assets/ScriptsAssetSet/llApplyImpulse.lsl32
1 files changed, 16 insertions, 16 deletions
diff --git a/bin/assets/ScriptsAssetSet/llApplyImpulse.lsl b/bin/assets/ScriptsAssetSet/llApplyImpulse.lsl
index 6b2461f..add7a08 100644
--- a/bin/assets/ScriptsAssetSet/llApplyImpulse.lsl
+++ b/bin/assets/ScriptsAssetSet/llApplyImpulse.lsl
@@ -1,16 +1,16 @@
1//Rez an object, and drop this script in it. 1//Rez an object, and drop this script in it.
2//This will launch it at the owner. 2//This will launch it at the owner.
3default 3default
4{ 4{
5 state_entry() 5 state_entry()
6 { 6 {
7 list p = llGetObjectDetails(llGetOwner(), [OBJECT_POS]); 7 list p = llGetObjectDetails(llGetOwner(), [OBJECT_POS]);
8 if(p != []) 8 if(p != [])
9 { 9 {
10 llSetStatus(STATUS_PHYSICS, TRUE); 10 llSetStatus(STATUS_PHYSICS, TRUE);
11 vector pos = llList2Vector(p, 0); 11 vector pos = llList2Vector(p, 0);
12 vector direction = llVecNorm(pos - llGetPos()); 12 vector direction = llVecNorm(pos - llGetPos());
13 llApplyImpulse(direction * 100, 0); 13 llApplyImpulse(direction * 100, 0);
14 } 14 }
15 } 15 }
16} 16}