OsKey2Name

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(New page: '''string osKey2Name(key id)''' <source lang="lsl"> // //osKey2Name() example, by Tom Earth. // default { state_entry() { string owner_name = osKey2Name(llGetOwner()); ...)
 
m (Add See Also)
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
'''string osKey2Name(key id)'''
+
{{osslfunc
 
+
|threat_level=Low
<source lang="lsl">
+
|permissions=${OSSL&#124;osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
 +
|delay=0
 +
|function_syntax=string osKey2Name(key id)
 +
|description=Returns the avatar's name, based on their UUID.
 +
|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>
 +
|additional_info=
 +
}}
 +
== See Also ==
 +
* [[osAvatarName2Key]]
 +
* [[osKey2Name]]

Latest revision as of 09:00, 7 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); 
    }
}


[edit] See Also

Personal tools
General
About This Wiki