LlInstantMessage

De DigiWiki.

Tell the owner somebody touched the object:

// This particular example is for demonstration only.
// Use llOwnerSay() for the same functionality, in case the owner is known to be in the same Region.
 
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!");
    }
}

Send a confirmation to the Avatar that touches an object without spamming other Avatars:

default
{
    touch_start(integer total_num)
    {        
        llInstantMessage(llDetectedKey(0),"You have been registered!");
    }
}
Outils personnels
  • Cette page a été consultée 601 fois.
donate
Google Ads