I found this code somewhere which sort of does what I want however would like to tweak it a bit. It scans and shows 16 items in a 96m range. Results show like this Prim Owner Monitoring (Relay) - Location: <129.50000, 42.25000, 38.73722> - Range: 39(m) I need to know how to make the location coordinates of the returned objects into a clickable link so I can teleport to the object or place a beacon on the object or some way to locate the scanned objects because as of now its just text no way to pinpoint the actual object. Or maybe tweak the script to only scan and list ojbects made by a certain avatar. My goal is to be able to scan for objects on a sim made by and individual rather then owner because the owner varys across sims. The area search feature of pheonix doesnt have the option of searching for ojbects by creator. After the scan be able to click the location and teleport or place a beacon or some way to pinpoint the object after the scan. Thanks integer i;
vector avPos;
vector rPos;
integer avDistance;
default
{
state_entry()
{
}
touch_start(integer total_number)
{
if (llDetectedOwner(0) == llGetOwner())
{
llSensor("", NULL_KEY, PASSIVE | SCRIPTED | ACTIVE, 97, PI);
}
}
sensor(integer total_number)
{
llOwnerSay("Scanning up to 16 objects within 96 meters");
llOwnerSay( (string)total_number + " objects detected" );
for (i = 0; i < total_number; i++)
{
avPos = llDetectedPos(i);
rPos = llGetPos();
vector avDivPos = (avPos - rPos) * 0.010417;
avDistance = (integer) llVecDist(rPos, llDetectedPos(i));
llOwnerSay("" + llDetectedName(i) + " - Location: " + (string)llDetectedPos(i) + " - Range: " + (string)avDistance + "(m)");
}
}
no_sensor()
{
llOwnerSay("Nothing Detected.");
}
} 22> - Range: 39(m)