Jump to content
SwireD

avatar name, time, date, touched object

Recommended Posts

hi! how to make script show who touched object, in what time and date as a hover text?

Share this post


Link to post
Share on other sites
2 hours ago, Rolig Loon said:

In your touch_start event, grab llDetectedName(0) and llGetTimestamp()  and put them into llSetText.  See http://wiki.secondlife.com/wiki/LlSetText

Thank you very much! can you help to make it two line text - time and date go to second line?

default
{
    touch_start(integer total_number)
    {
        llSetText(llKey2Name(llDetectedKey(0)) + llGetTimestamp(), <1 ,1, 1>, 1 );
    }
}

Share this post


Link to post
Share on other sites

Use "\n" for a newline character:

llSetText(llKey2Name(llDetectedKey(0)) + "\n" + llGetTimestamp(), <1 ,1, 1>, 1 );

  • Like 2
  • Thanks 1

Share this post


Link to post
Share on other sites
3 minutes ago, KT Kingsley said:

Use "\n" for a newline character:

llSetText(llKey2Name(llDetectedKey(0)) + "\n" + llGetTimestamp(), <1 ,1, 1>, 1 );

Thanks so much!

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...