Jump to content

Invisible Prim on Sit?


EmilyOhGee
 Share

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

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

Recommended Posts

When you want any scripted object to change visibility, you can use llSetAlpha, specifying which face(s) you want to change.  See the wiki at http://wiki.secondlife.com/wiki/LlSetAlpha .  If you have a multi-prim object and want to change the visibility of a specific prim in the linkset, you can use llSetLinkAlpha or you can set the last parameter in PRIM_COLOR when you use llSetLinkPrimitiveParams .  All you need to do is add the one-line command after you sit (or UnSit) to make the object change.

Link to comment
Share on other sites

for sitting and standing use the changed event... ( changed link)

 

http://wiki.secondlife.com/wiki/Changed

 

 changed(integer change)
    {
        // check if link set got changed
        if(change & CHANGED_LINK)
        {
             key av = llAvatarOnSitTarget();
            if (av) // evaluated as true if key is valid and not NULL_KEY
            { llSetLinkAlpha(LINK_THIS, 0.0, ALL_SIDES);
            }
            // nothing is sitting on the object
            else
            { llSetLinkAlpha(LINK_THIS, 1.0, ALL_SIDES);
            }
        }
    }

 

:)

 

Link to comment
Share on other sites

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