These forums are CLOSED. Please visit the new forums HERE
integer llCreateLink(key id) |
|
Strife Onizuka
Moonchild
![]() Join date: 3 Mar 2004
Posts: 5,887
|
04-22-2004 04:50
would be nice if llCreateLink returned the link number of the object it just linked in.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey |
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
|
04-22-2004 07:54
What happens when you link two objects together:
When linking an object, say, Object A, to another, Object B, Object A's parent prim is assigned link number 2. All of Object A's children's link numbers are incrimented and added to the set (the Link#2 of Object A, becomes the link#3 of Object B). All previous links that Object B had are basicly pushed back the number of prims that object A was composed of. (Lets say Object B is a link set of 2 prims, and Object A is a link set of 2 prims. When object A is linked to object B, object A's parent prim is assigned link number 2, object A's child prim is assigned link number 3, and the child prim of object B is pushed back in link number, from link number 2 before the linking to link number 4 after. Example: Before Linking: Object A's links: 1, 2 Object B's links: 1, 2 Object A is linked to B. Object B's new links: 1, 2, 3, ,4 IMO, this is more complicated then simply appending the new prims to the set. However, because the current implementation is more complicated to program (I think), there had to be a good reason for it. Reply: The main reason why this suggestion wont work well, is that you can link multi prim objects to your object. Returning one integer only tells a small part of the story. Perhaps returning a list would be better. ==Chris _____________________
October 3rd is the Day Against DRM (Digital Restrictions Management), learn more at http://www.defectivebydesign.org/what_is_drm
|