Join us in Outworldz at http://www.outworldz.com:9000 or follow us:

[Table of Contents]

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
Mover Move-From-Point-To-Point  

Move-From-Point-To-Point

Move From point to pint tour guide

Category: Mover
By : Unknown
Created: 2019-08-30 Edited: 2019-08-30
Worlds: Second Life

the Zip file

Download all files for Move-From-Point-To-Point
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Mover Script.lsl
1 //:Author: Unknown
2 //:CATEGORY: Mover
3
4 float delay = 0.1;
5 integer m_STEPS = 64;
6
7 motionTo(vector dest,rotation rot) {
8 integer i;
9 vector currentpos = llGetPos();
10 vector step = (dest - currentpos) / m_STEPS;
11
12 for (i = 1;i <= m_STEPS; i++)
13 {
14 if(i == (m_STEPS / 2))
15 {
16 llSetRot(rot);
17 }
18 llSetPos(currentpos + (step * i));
19
20 }
21 llSensor("Track",NULL_KEY,ACTIVE | PASSIVE,10,PI/4);
22 }
23
24 default {
25 state_entry() {
26 llSensor("Track",NULL_KEY,ACTIVE | PASSIVE,10,PI/4);
27 }
28 changed(integer what) {
29 if(what & CHANGED_REGION_START){
31 }
32 }
33 sensor(integer n) {
34 motionTo(llDetectedPos(0) +(llRot2Fwd(m_NEXTROT) / 10),llDetectedRot(0));
35 }
36 no_sensor()
37 {
39 }
40 timer() {
41 llSensor("Track",NULL_KEY,ACTIVE | PASSIVE,10,PI/4);
43 }
44 }

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