OsAvatarName2Key
From OpenSimulator
(Difference between revisions)
(New page: // // Sample Script using osAvatarName2Key(first,last) to send Instant Message // string FirstName = "John"; string LastName = "Smith"; default { state_entry() { llSay(0,...) |
|||
Line 1: | Line 1: | ||
− | // | + | // |
− | // 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 16: | Line 16: | ||
llInstantMessage(kAvatarKey, "Test Message Here"); | llInstantMessage(kAvatarKey, "Test Message Here"); | ||
} | } | ||
− | } | + | } |
Revision as of 22:46, 10 January 2010
// // 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"); } }