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
Question
Rolig Loon
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
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