Jump to content
  • 0

LSL Scripting help Please!!


joshua Bumbo
 Share

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

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

Question

I have this bandana mask that I made that has one on the face and one on the neck. The prim needs to move down by 0.08 on Z because there is a clickible I always wear (Not linked to mask) and when the mask is up it bocks the clickible tom make it more realistic . The clickiblemakes a click noise when clicked. There is 10 prims total and it listens for the command "maskup" or "maskdown" . If possible id like to make it not move if it's allready in the position requested. (ex. up or down) Here is what I have so far. Any will help will be much appreciated.

Thank you,

 

default
{
    state_entry()
    {
        // listen on channel zero for any chat spoken by the object owner.
        llListen(2,"",llGetOwner(),"");
    }
    
    listen(integer channel, string name, key id, string message)
    {
        // check if the message corresponds to a predefined string.
        // llToLower converts the message to lowercase.
        // This way, "HELLO", "Hello" or "HeLLo" will all work the same way.
        if (llToLower(message) == "maskup")
        {
         llSetLinkAlpha(LINK_SET, 1.0, ALL_SIDES);
//-----> needs to go up } else if (llToLower(message) == "maskdown") { llSetLinkAlpha(LINK_SET, 0.0, ALL_SIDES);
//-----> needs to go down } else if (llToLower(message) == "maskhide") { llSetLinkAlpha(LINK_SET, 1.0, ALL_SIDES);
//-----> need to go down } } }

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

If you are a scripter and are looking for help in refining something that you wrote, the place to ask is the LSL Scripting forum. 

If you are looking to hire a scripter to do some work for you, the place to post is the InWorld Employment forum. 

If you are looking for a finished product that does what you are hoping, the place to post is the Wanted forum.

  • Like 3
Link to comment
Share on other sites

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