Jump to content

text when object is stood on


woodierider
 Share

You are about to reply to a thread that has been inactive for 1535 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 1535 days.

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...