Game Development Community

ParticleEmitterData not working

by Prince of Troy · in RTS Starter Kit · 04/03/2006 (11:45 pm) · 2 replies

I trying to use the ParticleEmitterData datablock and the ParticleData datablock, bot not working, there's no particles, I have try this forum thread: http://www.garagegames.com/mg/forums/result.thread.php?qt=26068 but nor working.

change mNetFlags.set(Ghostable) to mNetFlags.set(ScopeAlways) in particleEmitter.cc.


I need particles, how can I turn back on?


Help would be apreciated.

#1
04/04/2006 (6:40 pm)
The fix does work. Did you do a Build Clean than Rebuild All. Now launch RTS and redo the particle in the mission file.

dont forget these at the end ;

mNetFlags.set(ScopeAlways);
#2
04/05/2006 (9:04 am)
Ok, thanks michael. I was working on that, I can see the particles and fx, but I see my problem exactly:
My unit need to shoot an arrow and activate sound and particles on ExplosionData, here the code:

datablock ProjectileData(CrossbowProjectile)
{
projectileShapeName = "~/data/shapes/crossbow/projectile.dts";
directDamage = 40;
radiusDamage = 60;
damageRadius = 1.5;
explosion = CrossbowExplosion;
particleEmitter = CrossbowBoltEmitter;//*******works fine
.....
}


the CrossbowBoltEmitter, works fine, now in CrossbowExplosion

datablock ExplosionData(CrossbowExplosion)
{
soundProfile = CrossbowExplosionSound;//*********don't works
lifeTimeMS = 1200;

// Volume particles
particleEmitter = CrossbowExplosionFireEmitter;//*********don't works
particleDensity = 75;
particleRadius = 50;
....
}
the CrossbowExplosionFireEmitter datablock works fine, but particleEmitter field not working when CrossbowExplosion is activate, only thats fields works:

// Dynamic light
lightStartRadius = 6;
lightEndRadius = 3;
lightStartColor = "1 0 0";
lightEndColor = "0 0 0";

not sound too.

How can I enable particles when a projectil:ProjectileData.explosion->ExplosionData.soundProfile, ExplosionData.particleEmitter?
or there is a reason for that is disable.


Thanks.