Jump to content

Mutiple Prim Flashing


naughtyniece
 Share

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

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

Recommended Posts

Hi, i have a object may of 5 linked prims and i want it to flash, i have a script but it just flashes the parent prim

float toff_unit = 2.0;
float ton_unit = 1.0;

switch( integer lights_on )
{
    llSetPrimitiveParams( [ PRIM_FULLBRIGHT, ALL_SIDES, lights_on  ] );
}

default
{
    state_entry()
    {
        llSetTimerEvent(toff_unit);
        switch( FALSE );
    }

    timer() { state lightOn; }
}

state lightOn
{
    state_entry()
    {
        llSetTimerEvent(ton_unit);
        switch( TRUE );
    }

    timer() { state default; }
}

How do i apply it to the whol object please?

 

Link to comment
Share on other sites

You're using llSetPrimitiveParams, which can only affect the prim/link item that the script resides within.

To affect the whole object, you want to use llSetLinkPrimitiveParams to affect each linked object.

--

I wouldn't say this is a smart idea though, the more PrimitiveParams commands you use, the more lag you're generating on the sim by causing object updates. I'd only make objects flash if they did so temporarily, when someone was close by or on a timer, so that it stops flashing after a while (or both).

  • Like 1
Link to comment
Share on other sites

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