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
Scanner Agent_Scanner_with_info  

Agent_Scanner_with_info

Avatar scanner

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

the Zip file

Download all files for Agent_Scanner_with_info
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Agent_Scanner_with_info_1.lsl
1 string output;
2 default
3 {
5 {
6 llSensorRepeat("", "", AGENT, 100, PI, 0.1);
7 }
9 {
10 output = "No avatars detected.";
11 llSetText(output, <1,1,1>, 1);
12 }
13 sensor(integer num)
14 {
15 integer i;
16 output="";
17 for (i=0; i<num; i++)
18 {
20 {
21 output+=llDetectedName(i) + " - [ " + (string)llRound(llVecDist(llGetPos(), llDetectedPos(i))) + "m ";
23 output+="- F ";
24 if(llGetAgentInfo(llDetectedKey(i)) & AGENT_MOUSELOOK)
25 output+="- ML ";
27 output+="- T ";
29 output+="- S ";
31 output+="- A ";
32 output+="]\n";
33 }
34 }
35 llSetText(output, <1,1,1>, 1);
36 }
37 }

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