EmilyOhGee Posted September 8, 2015 Share Posted September 8, 2015 I have done a lot of searching, but can't seem to find a script that will make a prim go alpha when sat on, and then reverse when the av stands up. Can anyone help? Link to comment Share on other sites More sharing options...
Rolig Loon Posted September 8, 2015 Share Posted September 8, 2015 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 More sharing options...
Xiija Posted September 8, 2015 Share Posted September 8, 2015 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 More sharing options...
Recommended Posts
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