LSL Wiki Mirror 7-7-7 : llSetLinkPrimitiveParams

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings ::
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]);
     }
}

Notes

Also see:
llSetLinkAlpha
llSetLinkColor
llSetLinkTexture


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