OsKey2Name

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (XEngine to OSSL)
(Replace script)
Line 4: Line 4:
 
|delay=0
 
|delay=0
 
|function_syntax=string osKey2Name(key id)
 
|function_syntax=string osKey2Name(key id)
 +
|description=Returns the avatar's name, based on their UUID.
 
|ossl_example=<source lang="lsl">
 
|ossl_example=<source lang="lsl">
 
//
 
//
//osKey2Name() example, by Tom Earth.
+
// osKey2Name Script Exemple
 +
// Author: djphil
 
//
 
//
 +
 
default
 
default
 
{
 
{
 
     state_entry()
 
     state_entry()
 
     {
 
     {
         string owner_name = osKey2Name(llGetOwner());
+
        llSay(PUBLIC_CHANNEL, "Touch to see osKey2Name usage.");
         llOwnerSay("Your name is: "+owner_name);  
+
    }
 +
 
 +
    touch_start(integer number)
 +
    {
 +
         string name = osKey2Name(llDetectedKey(0));
 +
         llSay(PUBLIC_CHANNEL, "Your name is " + name);  
 
     }
 
     }
 
}
 
}
 
</source>
 
</source>
|description=Returns the avatar's name, based on their UUID.
+
|additional_info=
|
+
 
}}
 
}}

Revision as of 16:37, 5 December 2020

string osKey2Name(key id)
Returns the avatar's name, based on their UUID.
Threat Level Low
Permissions ${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
Extra Delay 0 seconds
Example(s)
//
// osKey2Name Script Exemple
// Author: djphil
//
 
default
{
    state_entry()
    {
        llSay(PUBLIC_CHANNEL, "Touch to see osKey2Name usage.");
    }
 
    touch_start(integer number)
    {
        string name = osKey2Name(llDetectedKey(0));
        llSay(PUBLIC_CHANNEL, "Your name is " + name); 
    }
}
Personal tools
General
About This Wiki