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

Syntax

void llInstantMessage( key user, string message );

Forced delay: 2.0 seconds. Energy: 10.0.

Parameters

key user
avatar UUID
string message
message to be transmitted

To send a message directly to an object, use llRegionSayTo.

Caveats

Examples

Tell the owner somebody touched the object:

default
{
    touch_start( integer total_num )
    {        
        llInstantMessage( llGetOwner(), "Someone touched me" );
    }
}

Send an IM to a detected avatar only

default
{
    touch_start( integer total_num )
    {
        llInstantMessage( llDetectedKey(0), "Hands Off!");
    }
}

Notes

See also

Functions

Deep notes

Issues

Footnotes

  1. As of Feb 26th, 2013, in all sims, instant messages are now truncated to 1023 bytes to prevent certain types of delivery failure. (See Release Notes for Second Life Server 13.02.15.270481).
  2. Around 512 UTF-8 characters such as á.