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() 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 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); 
    }
}