Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

HOW TO make jewerly necklace bling same time?

Nicky1 McMillan
Registered User
Join date: 18 May 2007
Posts: 17
08-28-2007 05:20
Hello




I m kinda new at scripting. Just changed the bling effects,strenght etc. on my script text.

However i was adding them to the content of my objects to make it bling.


But somehow i cant figure how to make like example: 7 jewerly pieces bling "same time"

once i add the script to the contents they start blinking in different desistance.



thanks your the helps

greetings
_____________________
doing stuff, holding into money, salsa dancing

(*English isn' t my primary language*)
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
08-28-2007 05:33
Simplest way to synch them:

reset script on rez.

if they all use identical timers (I assume its the same script in all pieces) this should yield the desired effect.

Another option, if the prims are all in the same linkset, would be to use "slave" scripts that do the bling thing and one master script that uses a timer to send a specific link message which the slave scripts are looking for.
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
08-28-2007 05:37
I was guessing that the bling timing was purely the effect of llParticleSystem parameters, in which case a script reset won't synchronize them (unless they reinitialize llParticleSystem at state_entry or on_rez).

If the "bling" is slow enough that synchronization won't be defeated by limits of the viewer's particle implementation, one could use link messages to trigger an occasional "sync pulse" in all the linked prims, upon which they'd call "llParticleSystem([]);" with that empty rule list to clear the particles first, then call whatever particle system function is providing the "bling" effect.

One wouldn't do this frequently... it's an empirical question to determine how often. In theory, one might be able to do it just once (say, on_rez or even state_entry). Because it's all client-side, one might want to check that other viewers see it synchronized, too.
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
08-28-2007 10:40
The best way to approximate synchronous "bling", though not very efficient, is to use particle systems with a max emitter age > 0, then use a single timer script to llWhisper on a channel to "bling now", where all the bling scripts will listen and fire off the particle system again close to simultaneously.

With lots of bling, that's a lot of listens, thus not a very nice way of doing it.