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
}
}
}
Question
joshua Bumbo
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,
Link to comment
Share on other sites
1 answer to this question
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