OsAvatarName2Key

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
<source lang="lsl">  
+
{|  width="100%" style="border: thin solid black"
 +
| colspan="2" align="center" style=background:orange | '''{{SUBPAGENAME}}'''
 +
|-
 +
|'''Threat Level''' || <Threat Level goes here>
 +
|-
 +
|'''Function Syntax''' || <Syntax goes here>
 +
|-
 +
|'''Example(s)||<source lang="lsl">  
 
//
 
//
// Sample Script using osAvatarName2Key(first,last) to send Instant Message
+
// Sample Script using osAvatarName2Key(first,last) to send Instant Message
//  
+
//  
 
   
 
   
string FirstName = "John";
+
string FirstName = "John";
string LastName = "Smith";
+
string LastName = "Smith";
default
+
default
{
+
{
 
   state_entry()
 
   state_entry()
 
   {
 
   {
Line 17: Line 24:
 
       llInstantMessage(kAvatarKey, "Test Message Here");     
 
       llInstantMessage(kAvatarKey, "Test Message Here");     
 
   }
 
   }
}
+
}
 
</source>
 
</source>
 +
|}
 +
<Additional info/content goes here>
 +
[[Category:OSSL Functions]]
 +
 +
 
[[Category:OSSL]]
 
[[Category:OSSL]]
 
[[Category:OSSL functions without threat level]]
 
[[Category:OSSL functions without threat level]]
 
[[Category:OSSL functions without function syntax]]
 
[[Category:OSSL functions without function syntax]]

Revision as of 11:10, 8 June 2011

OsAvatarName2Key
Threat Level <Threat Level goes here>
Function Syntax <Syntax goes here>
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");    
   }
}

<Additional info/content goes here>

Personal tools
General
About This Wiki