Help me understand link numbers?
I link 10 prims together into one object, the primary script is in the root and there are scripts in other parts of the object to run buttons etc... Then I take the last prim which is colored on its four faces and link it to the object. It is the eleventh(11th) prim linked to the object.
Firestorm (in Viewer 6 mode) reports the linked primitive as Link 11.
llGetLinkNumber(); in the script in the last primitive returns that it is actually in Link 10 (this could be a -1 error? However...)
llGetLinkPrimitiveParams([]); reading the color from a different script/prim in the object has to be told to look at Link 2, for it to correctly read a face color.
How are these so different, and how is the number 2 working when I link the primitive in question last? Link order is no longer tied to the order you link? @_@
I've been going in circles trying to figure out why my code wasn't reading and reporting the face color... for hours now.
EDIT: Apparently the issue is that Firestorm is not aware that Link Numbers do not follow linked order (as stated by LSL Wiki), but are configured auto-magically and are not necessarily logical. llGetLinkNumber(); returns the truth. Taking the object and the resing it again will allow Firestorm to report the correct link number (until/unless linkage is changed).