OsKey2Name: Difference between revisions
From OpenSimulator
Jump to navigationJump to search
imported>Djphil m XEngine to OSSL |
imported>Djphil 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 | // 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= | ||
}} | }} | ||
Revision as of 23: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);
}
}
| |