OsKey2Name
From OpenSimulator
(Difference between revisions)
m (some format conversions) |
m (Add See Also) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{osslfunc | {{osslfunc | ||
|threat_level=Low | |threat_level=Low | ||
+ | |permissions=${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER | ||
+ | |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 | + | // osKey2Name Script Exemple |
+ | // Author: djphil | ||
// | // | ||
+ | |||
default | default | ||
{ | { | ||
state_entry() | state_entry() | ||
{ | { | ||
− | string | + | llSay(PUBLIC_CHANNEL, "Touch to see osKey2Name usage."); |
− | + | } | |
+ | |||
+ | 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
- osAvatarName2Key
- osKey2Name