Consider calling llSetLinkPrimitiveParamsFast() with a link parameter that does not represent an existing link number, for example like this:
llSetLinkPrimitiveParamsFast( -5, [PRIM_POSITION, <0.0, 0.0, 0.0>]);
llSetLinkPrimitiveParamsFast(1337, [PRIM_POSITION, <0.0, 0.0, 0.0>]);
In all my tests, this seems to silently fail without interrupting the script or throwing any errors. However, the documentation doesn't say anything about the expected behavior in that case and I could not find any other source elaborating on it.
- Is it safe to assume that this will silently fail and not break a script (in the future)?
- Is there any documentation on it I that I failed to find?
In first place, why would you want to call it with a non-existent link number? The function is going to silently fail if the link wasn't found, however take a look at
LINK_THISor similarLINK_flags - they all have negative values, respectively -1 to -4. In future, if Lindens add another flag (can't see a reason why they would do so), which will likely be -5, it may break things. Same if they decide to rise the prim limit in a linkset which is 256. I would assume they are not going to change it anytime soon since with meshes it is very hard to reach such a number and they haven't really changed it in past.