OsAvatarName2Key

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
 
Line 3: Line 3:
 
|permissions=${XEngine|osslParcelOG}ESTATE_MANAGER,ESTATE_OWNER
 
|permissions=${XEngine|osslParcelOG}ESTATE_MANAGER,ESTATE_OWNER
 
|delay=0
 
|delay=0
|function_syntax=string osAvatarName2Key(string FirstName, string LastName)
+
|function_syntax=key osAvatarName2Key(string FirstName, string LastName)
 
|ossl_example=<source lang="lsl">  
 
|ossl_example=<source lang="lsl">  
 
//
 
//

Latest revision as of 12:53, 14 November 2018

key osAvatarName2Key(string FirstName, string LastName)
Returns an avatar's key, based on his/her first and last name.
Threat Level Low
Permissions ${XEngine|osslParcelOG}ESTATE_MANAGER,ESTATE_OWNER
Delay 0 seconds
Example(s)
//
// Sample Script using osAvatarName2Key(first,last) to send Instant Message
// 
 
string FirstName = "John";
string LastName = "Smith";
default
{
   state_entry()
   {
       llSay(0, "Script running");
   }
   touch_end(integer num)
   {
       kAvatarKey = osAvatarName2Key(FirstName, LastName);
       llInstantMessage(kAvatarKey, "Test Message Here");    
   }
}
Personal tools
General
About This Wiki