[Opensim-users] Scripting Issue
Jeff Kelley
opensim at pescadoo.net
Sun Feb 7 18:41:23 UTC 2021
At 1:39 PM -0600 2/5/21, Dessert First wrote:
>I think there might be a misunderstanding of my problem. I
>understand the issue about link numbers changing when an object is
>taken into inventory and re-rezzed. I'm developing a protocol to fix
>that. My issue is that a STATIC rezzed object shows two different
>link number for the same prim in a linkset. If I drop a script into
>a prim, it prints out a link number. If I then immediately edit that
>prim, I get a different link number. This is incorrrect behavior.
>The editor and the scripting interface should have identical
>behavior in this regard. My original question is whether anyone has
>knowledge of the problem being in the edit or llGetLinkNumber() and
>which should I report the bug on.
As explained by Leal Duarte, it is not possible to synchronize the
link number as seen by viewers and regions.
Do not rely on link numbers in your scripts. Name links and use a routine
integer LinkByName (string name)
or
list LinksByName (string name)
-- Jeff
More information about the Opensim-users
mailing list