touch(integer num_detected)
{
llDialog(llDetectedKey(0), "Choose Target", [what goes here?], channel);
llSensor("", NULL_KEY, AGENT, 30, PI);
}
sensor(integer total_number)
{
llOwnerSay((string)total_number + " targets detected"
;integer i;
for (i=0; i < total_number; i++)
{
llOwnerSay("Target: " + llDetectedName(i));
}
}
Rather than llOwnerSay the list of targets, I'd like them to show up in the menu. Does it have anything to do with that list2string business? That was confusing me.
Also, does llDialog not run when it's in sensor or attach? So far I can only get it to come up when it's in touch.
