Jump to content
  • 0

What i need for it?


KennyChidorie
 Share

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

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

Question

  • 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

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 2231 days.

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...