OsKey2Name

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Add See Also)
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{| width="100%" style="border: thin solid black"
+
{{osslfunc
| colspan="2" align="center" style=background:orange | '''{{SUBPAGENAME}}'''
+
|threat_level=Low
|- valign="top"
+
|permissions=${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|'''Threat Level''' || <Threat Level goes here>
+
|delay=0
 
+
|function_syntax=string osKey2Name(key id)
|- valign="top"
+
|description=Returns the avatar's name, based on their UUID.
|'''Function Syntax''' || <source lang="lsl">
+
|ossl_example=<source lang="lsl">
string osKey2Name(key id)
+
</source>
+
|- valign="top"
+
|'''Example(s)||<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 ==
[[Category:OSSL Functions]]
+
* [[osAvatarName2Key]]
[[Category:OSSL functions without threat level]]
+
* [[osKey2Name]]

Latest revision as of 10: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