So I'm trying to make a smoke effect from a muffler, so I took the script from the stunt plane, and chopped off the bits I needed for it, but when I tested it to make sure it shows up, it doesn't.
I use this:
datablock ParticleData(GoKartParticle)
{
dragCoefficient = 0;
windCoefficient = 0;
gravityCoefficient = 0;
inheritedVelFactor = 0.0;
constantAcceleration = 0.0;
spinRandomMin = -90;
spinRandomMax = 90;
lifetimeMS = 500;
lifetimeVarianceMS = 0;
textureName = "base/data/particles/cloud";
colors[0] = "1 1 1 1";
colors[1] = "0.2 0.2 1 0";
sizes[0] = 0.1;
sizes[1] = 0.05;
};
datablock ParticleEmitterData(GoKartEmitter)
{
ejectionPeriodMS = 1;
periodVarianceMS = 0;
ejectionVelocity = 0;
velocityVariance = 0.0;
ejectionOffset = 0.0;
thetaMin = 0;
thetaMax = 180;
phiReferenceVel = 0;
phiVariance = 360;
overrideAdvance = false;
particles = "ShoppingGoKartParticle";
};
datablock ShapeBaseImageData(GoKartImage1)
{
shapeFile = "base/data/shapes/empty.dts";
emap = false;
mountPoint = 3;
rotation = "1 0 0 -90";
stateName[0] = "Ready";
stateTransitionOnTimeout[0] = "FireA";
stateTimeoutValue[0] = 0.01;
stateName[1] = "FireA";
stateEmitter[1] = contrailEmitter;
stateEmitterTime[1] = 10000;
};
datablock ShapeBaseImageData(GoKartImage2)
{
shapeFile = "base/data/shapes/empty.dts";
emap = false;
mountPoint = 4;
rotation = "1 0 0 -90";
stateName[0] = "Ready";
stateTransitionOnTimeout[0] = "FireA";
stateTimeoutValue[0] = 0.01;
stateName[1] = "FireA";
stateEmitter[1] = contrailEmitter;
stateEmitterTime[1] = 10000;
};
It's in a separate script, but I have it so it's executed. What am I doing wrong?
Don't worry, it's not really a go kart. I just needed to hide the real name.