User:Cow Taurog/Language scanner

From Second Life Wiki
Jump to navigation Jump to search

Tells the owner who is nearby, and their ISO 639-1 language code. <lsl> default{

   state_entry(){
       llSensor("","",AGENT,96,PI);
   }
   touch_start(integer num){
       llSensor("","",AGENT,96,PI);
   }
   sensor(integer num){
       llOwnerSay(llDetectedName(num-1)+", "+llGetAgentLanguage(llDetectedKey(num-1)));
   }
   no_sensor(){
       llOwnerSay("No more avatars found.");
   }

} </lsl>