From Second Life Wiki
Revision as of 12:43, 28 January 2007 by Darien Caldwell (Talk | contribs)

Jump to: navigation, search


Function: llInstantMessage( key user, string message );

Sends an Instant Message specified in the string message to the user specified by the key key.

• key user
• string message


  • This function causes the script to sleep for 2.0 seconds.The calling script is delayed for 2 seconds to prevent Instant Message spamming. For applications where this is problematic, it's possible to place the call to llInstantMessage in a child script and pass the information to that script via other means. The message sent can not be longer than 1024 bytes.
All Issues ~ Search JIRA for related Bugs



key owner;

default {

   on_rez(integer start_param)
    owner=llGetOwner();  // get the key of the objects owner.
   touch_start(integer total_num)
   llInstantMessage(owner,llKey2Name(owner)+", " + (string)total_num +" Avatar(s) touched me!");




Instant Messaging has the benefit of allowing communication from an object to an avatar anywhere in the Grid. The downsides are, other objects can not recieve Instant Messages, nor, can an Avatar Instant Message an object. It's a one way communication avenue. Also the 2 second script delay can also be considered a downside in some applications.

See Also

Deep Notes

Search JIRA for related Issues


function void llInstantMessage( key user, string message );