Don't click here unless you want to be banned.

LSL Wiki : llSetLinkPrimitiveParams

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawl836.us.archive.org
llSetLinkPrimitiveParams(integer linknumber, list rules)

The ruleset is the same as used in llSetPrimitiveParams.

A simple script to light up a prim in a linkset when touched, and unlight the last one touced using llSetLinkPrimitiveParams. Assuming this script is in each prim in the linkset.

default
{
    touch_start(integer total_number)
    {
        llSetPrimitiveParams([PRIM_FULLBRIGHT, ALL_SIDES, TRUE]);
        llSetLinkPrimitiveParams(LINK_ALL_OTHERS, [PRIM_FULLBRIGHT, ALL_SIDES, FALSE]);
     }
}

as an added bonus, besides doing stuff to other prims, you can also move an avatar sitting on the object just as if it was just another child prim, the link number for a single avatar sitting on the object will always be the primcount of the object, and after several tests I (TigroSpottystripesKatsu) calculated an approximate average between the offsets of different av heights between where an avatar is positioned when sitting on a prim with sit target defined to a given offset and positioning the avatar with this command after it is sitting to about 0.365 in the Z axis.

Notes



Also see:
llSetLinkAlpha
llSetLinkColor
llSetLinkTexture


Functions | Link | Object | Primitive
Comments [Hide comments/form]
I suggesst we keep the link to llSetPrimitiveParams instead of recreating the ruleset here, so there will only be one place to keep up to date.
-- ZenMondo (2007-03-27 20:40:38)
No pair function of llGetLinkPrimitiveParams? That's a bummer. This is about a quarter as useful as a pair.
-- MerothJunge (2007-03-27 23:27:18)
Hmm, the PRIM_POSITION in the llSetLinkPrimitiveParams() is relativ for the root position not like int the llSetPrimitiveParams()!
-- wdsl-fixip-0-001.inet.hu (2007-03-30 13:30:19)
Although PRIM_POSITION is relative to the root position, PRIM_ROTATION is not related to root rotation.
-- DedricMauriac (2007-04-20 22:43:39)
PRIM_ROTATION is apparently broken, at least in 1.17.0(12). As far as I can tell, it applies the root rotation twice. I have an object whose root prim is rotated 10 degrees. In order to set a second object to be rotated by -12 degrees, I have to use llSetLinkPrimitiveParams(2, [PRIM_ROTATION, llEuler2Rot(<-32,0,0>*DEG_TO_RAD)]).
-- adsl-75-39-65-133.dsl.pltn13.sbcglobal.net (2007-06-22 05:24:04)
(That last comment about PRIM_ROTATION being broken was by me, by the way, forgot to log in first)
-- NeoRebus (2007-06-22 05:30:28)
I second the motion to have a companion llGetLinkPrimitiveParams() function. It seems silly to have a 'set' without a 'get'. Maybe there's some obscure reason?
-- adsl-209-30-159-128.dsl.rcsntx.swbell.net (2007-06-22 11:22:20)
The reason is it would allow for the automated copying of other people's modifiable work. Not having llGetLinkPrimitiveParams() doesn't prevent it, but it makes it a lot harder since you then have to drop a script into each individual prim. with llGetLinkPrimitiveParams(), you could drop a single script into the root prim, and a few seconds later, have an exact copy, no fuss, no muss. LL is looking after the best interests of creators.
-- castle.aosmd.com (2007-07-17 16:04:08)
Is there a problem with this when it is being applied to an avatar, it was working Sunday night (093107) and then after the rolling restart on Monday (100107) it does not seem to be having an effect on the linked prim if the linked prim is an avatar.
-- user-10lf304.cable.mindspring.com (2007-10-02 16:45:14)
Attach a comment to this page: