Jump to content

looking for a scripter to help with simple code


VeranniCakes
 Share

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

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

Recommended Posts

Ok so I have two objects. both of them light up at different times, but I want them to change colors, how do I get them to change colors?

Here's a video of what I have

Here's my code so far

integer iON;

default
{
    state_entry()
    {
        llSetTimerEvent(3.0);
       
llSetLinkPrimitiveParamsFast(LINK_SET,[34,2,PRIM_FULLBRIGHT, ALL_SIDES, iON, PRIM_GLOW, ALL_SIDES, 0.05*iON,
            34,1,PRIM_FULLBRIGHT, ALL_SIDES, !iON, PRIM_GLOW, ALL_SIDES, 0.05*!iON]);

    }

    timer()
    {
        iON = !iON;
         llSetLinkPrimitiveParamsFast(LINK_SET,[34,2,PRIM_FULLBRIGHT, ALL_SIDES, iON, PRIM_GLOW, ALL_SIDES, 0.05*iON,
            34,1,PRIM_FULLBRIGHT, ALL_SIDES, !iON, PRIM_GLOW, ALL_SIDES, 0.05*!iON]);
    }
}

Link to comment
Share on other sites

Right now, all you're doing is setting FULL_BRIGHT and GLOW.

Check out PRIM_COLOR for prim color.  Check out PRIM_POINT_LIGHT for light emission color. 

Detailed info can be found here:  http://wiki.secondlife.com/wiki/LlSetLinkPrimitiveParams#llSetLinkPrimitiveParams

Also, I suggest using PRIM_LINK_TARGET instead of 34 in your statements, it's much easier to read.

 

 

 

Edited by Yingzi Xue
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1668 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...