226
Modification Help / Trouble Creating a Visible Projectile
« on: May 29, 2011, 06:59:16 PM »
I'm clearly missing something here, but I don't know what that is.
I'm trying to create a Projectile which has a purplish emitter hanging in the air behind it, but there isn't actually a trail.
I'm trying to create a Projectile which has a purplish emitter hanging in the air behind it, but there isn't actually a trail.
Code: [Select]
datablock ParticleData(DeathrayParticle)
{
dragCoefficient = 0;
gravityCoefficient = 0;
inheritedVelFactor = 0;
constantAcceleration = 0;
lifetimeMS = 500;
lifetimeVarianceMS = 0;
spinSpeed = 0;
spinRandomMin = 0;
spinRandomMax = 0;
textureName = "base/data/particles/cloud";
colors[0] = "0.6 0 1 1";
sizes[0] = 1;
times[0] = 0;
colors[1] = "0 0 0 0";
sizes[1] = 1;
times[1] = 1;
useInvAlpha = false;
};
datablock ParticleEmitterData(DeathrayEmitter)
{
lifetimeMS = 10000;
ejectionPeriodMS = 10;
particles = "DeathrayParticle";
};
datablock projectileData(DeathrayProjectile)
{
directDamageType = $DamageType::Deathray;
directDamage = 10000;
particleEmitter = DeathrayEmitter;
uiName = "";
};