Hi I'm -trying- to build a hud with prims (= buttons) moving offscreen. My knowledge on scripting is very basic, and I wonder if anyone can tell me how to accomplish this: - My linkset has 10 prims - On touch, prims 2, 3 and 4 have to move - I would like to call the prims by name, not by linknumber What I have now is this: vector vPosOfs = <0.0, 0.0, 0.25>;
default
{
state_entry()
{
// llSay(0, "Hello, Avatar!");
}
touch_start(integer total_number)
{
vPosOfs.z*=-1.0;
integer vIntLnk = 2; //-- child prim link number
vector vPosLcl = (llList2Vector( llGetLinkPrimitiveParams( vIntLnk, [PRIM_POSITION] ), 0 ) - llGetPos()) / llGetRot();
vector v = llList2Vector( llGetLinkPrimitiveParams( vIntLnk, [PRIM_POSITION] ), 0 );
rotation vRotLcl = llList2Rot( llGetLinkPrimitiveParams( vIntLnk, [PRIM_ROT_LOCAL] ), 0 );
llSetLinkPrimitiveParamsFast( vIntLnk, [PRIM_POSITION, vPosLcl + vPosOfs * vRotLcl] );
}
} This works fine for prim with linknumber 2 ... but how do I make this happen for a 'list of prims'? Any help greatly appreciated!