Jump to content

Help needed with basic transparency script.


Pippo Anderton
 Share

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

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

Recommended Posts

Greetings everyone. This is my very first post here and i'd like to say hello to everybody here and thanks for the support you provide to everyone in need. My extremely low scripting skills brought me here to ask for help regarding something i wanted to try. Is it possible to insert a script inside a part of a mesh avatar (say for example the eyelids or any other separated part of the mesh) and make it so it goes transparent every 10 seconds? Literally just going back and forth from transparent to opaque in a specific amount of seconds. Thank you all!

Link to comment
Share on other sites

If you can modify your mesh avatar, then you could put this script in the link that you want to mess with.

You'll need to know the face number of the part you're targeting and use that instead of the 1 I've used in this example.

float interval = 10.0;
integer face_number = 1; 
integer opacity;

default
{
    state_entry ()
    {
        llSetAlpha (opacity, face_number);
        llSetTimerEvent (interval);
    }

    timer ()
    {
        opacity = !opacity;
        llSetAlpha (opacity, face_number);
    }
}

 

  • Like 1
Link to comment
Share on other sites

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