Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llMessageLinked sending to sertain object

Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
12-31-2007 09:44
is there any posible way to send a messege to one sertain object in a set of linked objects ive been looking into it and cant figure out if it is posible or not
Alicia Sautereau
if (!social) hide;
Join date: 20 Feb 2007
Posts: 3,125
12-31-2007 10:04
integer ThisLink = llGetLinkNumber(); //is root prim

llMessageLinked(ThisLink +1, blabla);
llMessageLinked(ThisLink +4, blabla);

need to keep track of the child linked number to know where u`ve sent the message to
must be an easier way but this is the only 1 i know for now :)
_____________________
FireEyes Fauna
Registered User
Join date: 26 Apr 2004
Posts: 138
12-31-2007 10:09
If you give all your linked objects a unique name, you could run a loop to put the names into a list, then

llMessageLinked((integer)llListFindList(list_name,["Name of Prim"]),blah,blah,blah);

or something like that...
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
12-31-2007 12:51
The number of the prim you want to send the link message to is the very 1st entry in llMessageLinked:

llMessageLinked(12, 0, "Touched.", NULL_KEY);

In that example, it will send the message "Touched" to prim number 12 in the linkset.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
12-31-2007 12:57
if you want a quick way to find a specific prim to send a message to, if you haven't really payed attention to the order you linked them in, or don't feel like rearranging them drop the folling script in your object root and touch the prim you need to send the message to and it'll tell you which link number it is...

CODE

default{
touch_start( integer vIntNull ){
llOwnerSay( (string)llDetectedLinkNumber( 0 ) );
}
}
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -