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
Animation Float_On_Water  

Float_On_Water

The most basic form of the script, No constraints here:

Category: Animation
By : Davy Maltz
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for Float_On_Water
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Float_On_Water_1.lsl
Get file # 2. Float_On_Water_2.lsl

Float_On_Water

Then, I made a modification to this for my own uses to make the object stay within a certain distance of a certain position. Heres the same script including those changes:

Category: Animation
By : Davy Maltz
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

1 float distance = 3; //Distance to allow away from the position.
2 vector position = <109,206,21>; //Position to stay close to.
3 default
4 {
6 {
8 llSetBuoyancy(0.2);
9 llSetStatus(STATUS_ROTATE_X|STATUS_ROTATE_Y,FALSE);
15 }
16 timer()
17 {
18 vector pos = llGetPos();
19 vector v;
20 if(pos.z - 0.4 <= llWater(v))
21 {
22 llPlaySound("91666289-b6ec-7066-1727-4de10cbc465e",1.0);
23 }
24 if(llVecDist(llGetPos(),position) > distance)
25 {
27 }
28 }
29 }

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