clockwerk-opensim-config – Blame information for rev
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | eva | 1 | //Rez an object, and drop this script in it. |
2 | //This will launch it at the owner. |
||
3 | default |
||
4 | { |
||
5 | state_entry() |
||
6 | { |
||
7 | list p = llGetObjectDetails(llGetOwner(), [OBJECT_POS]); |
||
8 | if(p != []) |
||
9 | { |
||
10 | llSetStatus(STATUS_PHYSICS, TRUE); |
||
11 | vector pos = llList2Vector(p, 0); |
||
12 | vector direction = llVecNorm(pos - llGetPos()); |
||
13 | llApplyImpulse(direction * 100, 0); |
||
14 | } |
||
15 | } |
||
16 | } |