Forums Index >> Modding >> emitter probs...
Page : <1> :
Did you put exec(game/server/scripts/emitters.cs); at the top of the.mis?
I tried FlamethrowerEmitterNode several time but I could never get it right so I took mine from torque demo hehe edit a few files a I got it to work :P
Yes I did put the exec(game/server/scripts/emitters.cs) but I put it at the bottom. Is that y it is stuffing up?
Yes.
Can u put the exec thing in the main.cs file? Cuz some1 in a diff thread said u cud
Yes.
K thx for that fellas :)
Page : <1> :
Hi fellas/gals, I am having probs with inserting the emitters into my pref.cs. I have done everything as 187's tutorial has told me and ive double checked it as well. This is wat my emitters.cs file looks like:
Datablock particledata(flamethrower)
{
animateTexture = "0";
animTexName[0] = "game/data/shapes/Common/VolcanoExplosion.png";
colors[0] = "0.935433 0.154331 0.744094 1.000000";
colors[1] = "0.735433 0.154331 0.844094 1.000000";
colors[2] = "0.454331 0.204724 0.604724 0.370079";
colors[3] = "0.000000 0.000000 0.000000 0.000000";
constantAcceleration = "0";
dragCoefficient = "0.997067";
framesPerSec = "1";
gravityCoefficient = "-0.417338";
inheritedVelFactor = "0.295499";
lifetimeMS = "1984";
lifetimeVarianceMS = "480";
sizes[0] = "0.347922";
sizes[1] = "0.839285";
sizes[2] = "1.93798";
sizes[3] = "2.93902";
spinRandomMax = "500";
spinRandomMin = "-90";
spinSpeed = "0";
textureName = "game/data/shapes/Common/VolcanoExplosion.png";
times[0] = "1";
times[1] = "1.2";
times[2] = "1.498039";
times[3] = "2";
useInvAlpha = "1";
windCoefficient = "1";
};
Datablock particleemitterdata(flamethroweremitter)
{
className = "ParticleEmitterData";
ejectionOffset = "0";
ejectionPeriodMS = "28";
ejectionVelocity = "1.5";
lifetimeMS = "0";
lifetimeVarianceMS = "0";
orientOnVelocity = "1";
orientParticles = "0";
overrideAdvance = "0";
particleFarDist = "1000";
particles = "flamethrower";
periodVarianceMS = "27";
phiReferenceVel = "0";
phiVariance = "360";
thetaMax = "90";
thetaMin = "90";
useEmitterColors = "0";
useEmitterSizes = "0";
velocityVariance = "0.5";
};
Datablock ParticleEmitterNodeData(Flamethroweremitternode)
{
timeMultiple = 80;
};
And this is wat my.mis file looks like with the emitter in it:
New ParticleEmitterNode(FlamethrowerEmitterNode) {
position = "-236.326 22.0381 68.4225";
rotation = "0.0159319 0.00411669 0.999865 171.505";
scale = "1 1 1";
datablock = "FlamethrowerEmitterNode";
emitter = "FlamethrowerEmitter";
velocity = "1";
Can anyone plz tell me wat I am doing wrong?