Jump to content
You are about to reply to a thread that has been inactive for 3028 days.

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

Question

Posted

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.

2 answers to this question

Recommended Posts

  • 0
Posted

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);

 

 

  • 0
Posted

If you want to know the number of the face you just touched, try 

default{	 touch_start(integer num_detected)	 {	 	integer iLinkNo = llDetectedLinkNumber(0);	 	integer iFaceNo = llDetectedTouchFace(0);	 	llOwnerSay("You touched face number "+(string)iFaceNo+" of link number "+(string)iLinkNo);	 }}
You are about to reply to a thread that has been inactive for 3028 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
×
×
  • Create New...