OsGetAvatarHomeURI

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Added permissions and delay information)
m (Script change)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{osslfunc
 
{{osslfunc
 
|threat_level=Low
 
|threat_level=Low
|permissions=${XEngine|osslParcelOG}ESTATE_MANAGER,ESTATE_OWNER
+
|permissions=${OSSL|osslParcelOG}ESTATE_MANAGER,ESTATE_OWNER
 
|delay=0
 
|delay=0
|function_syntax=string osGetAvatarHomeURI(string uuid)
+
|function_syntax=string osGetAvatarHomeURI(key avatarId)
 
|ossl_example=<source lang="lsl">  
 
|ossl_example=<source lang="lsl">  
 
//
 
//
// Sample Script
+
// osGetAvatarHomeURI Script Example
//  
+
//
+
 
 
default
 
default
 
{
 
{
     touch_start(integer num_detected)
+
    state_entry()
 +
    {
 +
        llSay(PUBLIC_CHANNEL, "Touch to see osGetAvatarHomeURI usage.");
 +
    }
 +
 
 +
     touch_start(integer number)  
 
     {
 
     {
 
         key avatarKey = llDetectedKey(0);
 
         key avatarKey = llDetectedKey(0);
 
         string homeUri = osGetAvatarHomeURI(avatarKey);
 
         string homeUri = osGetAvatarHomeURI(avatarKey);
         llSay(0, "Your Home URI is: " + homeUri);
+
         llSay(PUBLIC_CHANNEL, "Your Home URI is: " + homeUri);
 
     }
 
     }
}</source>
+
}
 
+
</source>
 
|description=Returns an avatar's Home URI.
 
|description=Returns an avatar's Home URI.
|
+
|additional_info=This function was added in 0.8.2-post-fixes
 
}}
 
}}

Latest revision as of 11:55, 24 November 2020

string osGetAvatarHomeURI(key avatarId)
Returns an avatar's Home URI.
Threat Level Low
Permissions ${OSSL|osslParcelOG}ESTATE_MANAGER,ESTATE_OWNER
Extra Delay 0 seconds
Example(s)
//
// osGetAvatarHomeURI Script Example
//
 
default
{
    state_entry()
    {
        llSay(PUBLIC_CHANNEL, "Touch to see osGetAvatarHomeURI usage.");
    }
 
    touch_start(integer number) 
    {
        key avatarKey = llDetectedKey(0);
        string homeUri = osGetAvatarHomeURI(avatarKey);
        llSay(PUBLIC_CHANNEL, "Your Home URI is: " + homeUri);
    }
}
Notes
This function was added in 0.8.2-post-fixes
Personal tools
General
About This Wiki