llGetAgentList() - Simple Radar Script

Thread Started By zion

5119
0
  • 51 Vote(s) - 2.9 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rate Thread
#1
PHP Code:
list gPeople = [];
list 
gDist = [];
default
{
    
state_entry()
    {
        
llSetTimerEvent(5.0);
    }

    
timer()
    {
        
gPeople llGetAgentList(AGENT_LIST_REGION, []);
        
gDist = [];
        
integer x;
        
integer num llGetListLength(gPeople);
        
vector pos llGetPos();
        for(;
x<num;x++)
            
gDist += [llVecDist(posllList2Vector(llGetObjectDetails(llList2Key(gPeoplex), [OBJECT_POS]), 0)), llKey2Name(llList2Key(gPeoplex))];
            
//gDist += [llVecDist(pos, llList2Vector(llGetObjectDetails(llList2Key(gPeople, x), [OBJECT_POS]), 0)), llGetDisplayName(llList2Key(gPeople, x))];
        
gDist llListSort(gDist21);
        
llSetText(llDumpList2String(gDist"\n"), <0,0,0>, 1.0);
    }

Reply




Possibly Related Threads…
Thread Author Replies Views Last Post
  Radar OwnerSay Controller boogaloo 0 3,024 02-18-2013, 09:31 PM
Last Post: boogaloo
  Multi prims llGetAgentList radar zion 0 3,390 02-18-2013, 03:30 AM
Last Post: zion
  Simple Spy Script zion 0 2,098 02-18-2013, 03:16 AM
Last Post: zion

Forum Jump:

1 Guest(s)
Share this:

About Second Life Copybot

Second Life CopyBot Forum is a place where you can get items for Second Life and other vitual worlds for free. With our CopyBot viewers you can export and import any content from these virtual worlds and modify them in 3D software such as Blender, 3D studio Macx etc...