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
Walk Walk_Other  

Walk_Other

This script requires a flat prim to act as the platform.

Looking back at this script, I realize it's pretty ugly.

Feel free to fix some stuff. -- Fred

Category: Walk
By : Fred Kinsei
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for Walk_Other
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Walk_Other_1.lsl
1 string mess = "BLANK";
2 float distance;
3 vector height;
4 default
5 {
7 {
8 llListen(0, "", llGetOwner(), "");
9 distance = 0;
10 }
11 sensor(integer num)
12 {
13 integer i;
14 for (i=0; i<num; i++)
15 {
17 {
18 if(llVecDist(<0,0,0>, llDetectedPos(i)) != distance)
19 {
21 agent.z = agent.z / 2;
22 agent.z = agent.z + 0.11;
23 llRezObject("plat", llDetectedPos(i) - <0,0,agent.z>, ZERO_VECTOR, ZERO_ROTATION, 0);
24 distance = llVecDist(<0,0,0>, llGetPos());
25 }
26 }
27 }
28 }
29 listen(integer channel, string name, key id, string message)
30 {
31 if(llGetSubString(message, 0, 3) == "walk")
32 {
33 llSensorRepeat("", "", AGENT, 96, TWO_PI, 0.01);
34 mess = llGetSubString(message, 5, -1);
35 }
36 else if(message == "/walk off")
37 {
39 mess = "BLANK";
40 }
41
42 }
43 }

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