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
Pet Moving_Tentacle  

Moving_Tentacle

Moving Tentacle.lsl

Category: Pet
By : Anonymous
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for Moving_Tentacle
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Moving_Tentacle_1.lsl
1
2 default
3 {
5 {
7 }
8
9 sensor(integer num)
10 {
11 key target = llDetectedKey(0);
12 vector mypos = llGetPos();
13 vector targetpos = llDetectedPos(0);
14 vector test = llVecNorm(targetpos-mypos);
15 llSetPrimitiveParams([PRIM_FLEXIBLE, TRUE, 3,0.55,0.0,0.0,5.0,test]);
16 //llOwnerSay("Test: " + (string)test);
17
18 }
19 no_sensor()
20 {
21 key target = llDetectedKey(0);
22 vector mypos = llGetPos();
23 vector targetpos = llDetectedPos(0);
24 vector test = llVecNorm(targetpos-mypos);
25
26 llSetPrimitiveParams([PRIM_FLEXIBLE, FALSE, 3,0.5,0.0,0.0,1.0,test]);
27 }
28 link_message(integer sn, integer num, string str, key id)
29 {
30 if(str == "OFF")
31 {
32 state off;
33 }
34 }
35 }
36
37 state off
38 {
40 {
41 key target = llDetectedKey(0);
42 vector mypos = llGetPos();
43 vector targetpos = llDetectedPos(0);
44 vector test = llVecNorm(targetpos-mypos);
45
47 llSetPrimitiveParams([PRIM_FLEXIBLE, FALSE, 3,0.5,0.0,0.0,1.0,test]);
48 }
49
50 link_message(integer sn, integer num, string str, key id)
51 {
52 if(str == "ON")
53 {
54 state default;
55 }
56 }
57 }// END //

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