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
Positioning Averagepositioner  

Averagepositioner

A avatar follower, positions a prim at the waist of the nearest avatar.

Category: Positioning
By : Nitsuj Kidd
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for Averagepositioner
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Averagepositioner_1.lsl
1 //By Nitsuj Kidd
2 default
3 {
5 {
6 llSensorRepeat("", "", AGENT, 0.1, TWO_PI, 0.1);
7 }
8
9 sensor(integer num)
10 {
12 vector pos;
13 integer i;
14 for(i=0;i<num;i++)
15 {
16 pos += llDetectedPos(i);
17 }
18 pos = pos/num;
19 llMoveToTarget(pos, 0.1);
20 }
21 no_sensor()
22 {
24 }
25 }

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