OsAvatarName2Key
From OpenSimulator
(Difference between revisions)
m |
|||
Line 1: | Line 1: | ||
− | + | <source lang="lsl"> | |
+ | // | ||
// Sample Script using osAvatarName2Key(first,last) to send Instant Message | // Sample Script using osAvatarName2Key(first,last) to send Instant Message | ||
// | // | ||
Line 7: | Line 8: | ||
default | default | ||
{ | { | ||
− | + | state_entry() | |
− | + | { | |
− | + | llSay(0, "Script running"); | |
− | + | } | |
− | + | touch_end(integer num) | |
− | + | { | |
− | + | kAvatarKey = osAvatarName2Key(FirstName, LastName); | |
− | + | llInstantMessage(kAvatarKey, "Test Message Here"); | |
− | + | } | |
} | } | ||
− | + | </source> | |
− | + | ||
[[Category:OSSL]] | [[Category:OSSL]] |
Revision as of 15:58, 5 June 2011
// // 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"); } }