Jump to content

text when object is stood on


woodierider
 Share

You are about to reply to a thread that has been inactive for 2566 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Place the following in the root of the carpet.

default
{
    state_entry()
    {
    }

    collision_start(integer n)
    {

       //   Do not display owner
        if (llDetectedType(0) & AGENT && llDetectedKey(0) != llGetOwner())
        {
            string strName = llKey2Name(llDetectedKey(0));
            llSetText( strName, <0.004, 1.000, 0.439>, 1.0 );
        }
        else
            llSetText("", ZERO_VECTOR, 0);
    }
}

I leave it to you to improve with for example a time out or handling if more than one person stepping onto the carpet.

 

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 2566 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...