Jump to content
  • 0

What i need for it?


KennyChidorie
 Share

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

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

Question

So.... i need change something on my button... I need add integer faces for my mesh objects... It's possible? Faces not from root prim receiver.

Someone can help?


default
{
state_entry()
{
//None
}

touch_start(integer total_number)
{
integer link = llDetectedLinkNumber(12);
string name = llGetLinkName(link);
llSay(-999, name);
}
}

 

You want to know the name of the link that you touched?

No. I want add face side for hiding alpha of my mesh head.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

You want to know the name of the link that you touched?

When you use any of the llDetected * functions, the value in parentheses is always the number associated with one of the people who have just triggered the event.  In a touch_start event, it is extremely rare for more than one person to trigger the event simultaneously, so you will always write

llDetectedKey(0)  or

llDetectedTouchST(0) or, in your case,

llDetectedLinkNumber(0).

You are looking for the name of the link that was touched by that person, thus

string name = llGetLinkName(llDetectedLinkNumber(0));

On the other hand, if you are actually interested in getting the name of link number 12, and you don't care what the avatar touches to get that information, you write

string name = llGetLinkName(12);

 

 

Link to comment
Share on other sites

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