Jump to content

HELP: Creating a HUD with Texture Changing and Face Visibility Toggle Switch


D33SS3
 Share

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

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

Recommended Posts

Hello everyone!

[ My knowledge with LSL Scripting is at a beginner level, so please bare with me! :) ]

Recently, I purchased a texture changing script from Renderworks, I'm not having trouble with creating a HUD with texture changes.

However, I was wondering if it was possible to add to the script an option to control the visibility of a particular face of a mesh and/or combine two faces for one on and off toggle.

 

Link to comment
Share on other sites

Welcome aboard.

You will want to start becoming familiar with the LSL wiki, specifically the section on Functions.  In this case, study the entries for llSetTexture ( and llSetLinkTexture ) and for llSetAlpha ( and llSetLinkAlpha ).  They will show you the proper syntax for getting the right texture on the right face and determining whether it's visible of transparent.  

While you are just learning, the easiest way to think of accomplishing many  things at once is to collect them into the same scope, so that they are all handled by the same decision, as in

if ( iON == TRUE)
{
    // do this
    // and this
    // and this
}

There are more compact ways -- much better ones -- of doing this ( take a look at llSetLinkPrimitiveParams in the wiki ), but get comfortable with the basic method first.  

Link to comment
Share on other sites

2 minutes ago, Rolig Loon said:

Welcome aboard.

You will want to start becoming familiar with the LSL wiki, specifically the section on Functions.  In this case, study the entries for llSetTexture ( and llSetLinkTexture ) and for llSetAlpha ( and llSetLinkAlpha ).  They will show you the proper syntax for getting the right texture on the right face and determining whether it's visible of transparent.  

While you are just learning, the easiest way to think of accomplishing many  things at once is to collect them into the same scope, so that they are all handled by the same decision, as in


if ( iON == TRUE)
{
    // do this
    // and this
    // and this
}

There are more compact ways -- much better ones -- of doing this ( take a look at llSetLinkPrimitiveParams in the wiki ), but get comfortable with the basic method first.  

Yay, thank you!

I will be doing the research right now!

Link to comment
Share on other sites

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