Difference between revisions of "User:Cow Taurog/Language scanner"

From Second Life Wiki
Jump to navigation Jump to search
(create)
 
Line 1: Line 1:
Tells the owner who is nearby, and their <span class="plainlinks">[http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes ISO 639-1]</span> language code.
<lsl>
<lsl>
default{
default{
    state_entry(){
        llSensor("","",AGENT,96,PI);
    }
     touch_start(integer num){
     touch_start(integer num){
         llSensor("","",AGENT,96,PI);
         llSensor("","",AGENT,96,PI);

Revision as of 00:43, 7 January 2009

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>