naughtyniece Posted February 16, 2016 Share Posted February 16, 2016 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 primfloat 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 More sharing options...
Freya Mokusei Posted February 16, 2016 Share Posted February 16, 2016 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). 1 Link to comment Share on other sites More sharing options...
naughtyniece Posted February 16, 2016 Author Share Posted February 16, 2016 Perfect thank you, and it will be on touch, as its just a demo thing that the owner can turn on to show it off then turn off thanks Link to comment Share on other sites More sharing options...
Freya Mokusei Posted February 16, 2016 Share Posted February 16, 2016 Okay. As it's scripted right now it'll change states and flash endlessly (causing significant overhead, update time and therefore lag), hence why it caught my eye. Link to comment Share on other sites More sharing options...
Recommended Posts
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