PDA

View Full Version : Spawn Particle System Trouble



SeBeQ
06-23-2010, 09:44 AM
I have 2 classes

first one with exploding barrel
secind one with dripping barrel

in both cases I use


WorldInfo.MyEmitterPool.SpawnEmitter(ParticleVaria bleExp, Location, Rotation); //for first
WorldInfo.MyEmitterPool.SpawnEmitter(ParticleVaria bleDr, Location, Rotation); //for second


in TakeDamage(...) event

for exploding barrel i use evanescent particle
for dripping barrel i use continuous particle

On the map I put the two barrels.
When I shoot the exploding barrel as the first it is all OK.
When I start firing to leaking barrel and I firing (second time) to exploding barrels spawn exploding particle and leaking particle.
I put four leaking barrels on map. When shooting in those four barrels and shooting to explosion barrels - spawn explosion and four leaking particle.

When I shoot in a leaky barrel particles are not repeated.

How do I prevent this?