Jump to content

Blink script with face numbers


Winter Starlight
 Share

You are about to reply to a thread that has been inactive for 3171 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

This board is for script help, not hand-outs.

Where do you struggle?

Have you looked at the relevant LSL command, llSetPrimitiveParams? Have you tried examples using this command? This command requires you to select a face number.

If you also want to manipulate more than one prim/face within a linkset, take a look at llSetLinkPrimitiveParams.

//Show evidence of effort in trying to understand, and I'll try to help further. Good luck.

Link to comment
Share on other sites

Try this as a simple example of how to touch a face and toggle it's glow value, it should show you what you are going to have to do in your build to get specific faces to glow or not.

 

default{    state_entry()    {            }    touch_start(integer touches)    {          integer tFace = llDetectedTouchFace(touches - 1);                    float glowVal = llList2Float( llGetLinkPrimitiveParams(LINK_THIS, [PRIM_GLOW, tFace]), 0);                    if( glowVal > 0.0) glowVal = 0.0;          else glowVal = 0.2;          llSetLinkPrimitiveParamsFast(LINK_THIS, [PRIM_GLOW, tFace, glowVal]);    }}

 I am using the link version of set PP in order to give you a pointer to where to look further. It is simply toggling the glow value of any face by first getting the current value, then setting it off or on depending on what it finds.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 3171 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...