Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Link number assigment?

Rime Wirsing
Color me gone
Join date: 31 Dec 2008
Posts: 345
05-05-2009 07:10
Simple question but can't find the answer on the wikis.

How are link numbers assigned in link sets?

I know the last selected is the root and link number 1 but how are they assigned to the other members of the link set?

Thanks
Rime
Ee Maculate
Owner of Fourmile Castle
Join date: 11 Jan 2007
Posts: 919
05-05-2009 07:23
http://rpgstats.com/wiki/index.php?title=LlGetLinkNumber
Rime Wirsing
Color me gone
Join date: 31 Dec 2008
Posts: 345
05-05-2009 07:26
Excellent! Thanks.

And for others who want instant gratification:

From: someone
Links are numbered in the reverse order in which they were linked -- if you select a box, a sphere and a cylinder in that order, then link them, the cylinder is 1, the sphere is 2 and the box is 3. The last selected prim has the lowest link number.


Rime
ElQ Homewood
Sleeps Professionally
Join date: 25 Apr 2007
Posts: 280
05-05-2009 07:50
CODE

default
{
state_entry()
{
llInstantMessage(llGetOwner(),(string)llGetLinkNumber());
llRemoveInventory(llGetScriptName());
}

}
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
05-05-2009 12:02
additional information for create links and object selection inserts.

2 objects
ABC & 123

if ABC links in 123 the new prim order will be
A123BC

if an av (X, Y,Z) sits on any object they are appended to the end in the order they sat (IIRC)
A123BCXYZ

break links collapse the links in order so if you take out 3 you get
A12BC

and sitting avs will work the same if Y gets up you get
A123BCXZ

create and break links don't work on avs (IIRC)
and I don't thinks av's can remain sitting when you use those (or they silently fail I forget which)
_____________________
|
| . "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...
| -