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

LSL Wiki : llSetLinkPrimitiveParams

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are
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.

    touch_start(integer total_number)
        llSetPrimitiveParams([PRIM_FULLBRIGHT, ALL_SIDES, TRUE]);

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.


Also see:

Functions | Link | Object | Primitive
There are 9 comments on this page. [Display comments/form]