Blockland Forums > Modification Help
add light to a projectile
Pages: (1/1)
rkynick:
I tried to add light to this projectile(and an explosion) but nothing works, can anyone help point me in the right direction?( this is pretty much exactly like the bow but it and its projectile(and explosion) are redish.)
--- Code: ---datablock ExplosionData(firearrowExplosion)
{
//explosionShape = "";
soundProfile = firearrowExplosionSound;
lifeTimeMS = 250;
particleEmitter = firearrowExplosionEmitter;
particleDensity = 10;
particleRadius = 0.2;
faceViewer = true;
explosionScale = "1 1 1";
shakeCamera = false;
camShakeFreq = "10.0 11.0 10.0";
camShakeAmp = "1.0 1.0 1.0";
camShakeDuration = 0.5;
camShakeRadius = 10.0;
// Dynamic light
lightStartRadius = 2;
lightEndRadius = 8;
lightStartColor = "1 0 0 1";
lightEndColor = "0 0 0 0";
};
//projectile
AddDamageType("fireArrowDirect", '<bitmap:add-ons/ci/arrow> %1', '%2 <bitmap:add-ons/ci/arrow> %1',1,1);
datablock ProjectileData(firearrowProjectile)
{
projectileShapeName = "./shapes/arrow.dts";
directDamage = 35;
directDamageType = $DamageType::fireArrowDirect;
radiusDamage = 0;
damageRadius = 0;
radiusDamageType = $DamageType::fireArrowDirect;
explosion = firearrowExplosion;
particleEmitter = firearrowTrailEmitter;
muzzleVelocity = 65;
velInheritFactor = 1;
armingDelay = 0;
lifetime = 4000;
fadeDelay = 3500;
bounceElasticity = 0;
bounceFriction = 0;
isBallistic = true;
gravityMod = 0.25;
hasLight = true;
lightRadius = 3.0;
lightColor = "1 0 0 1";
};
--- End code ---
rkynick:
lol nevermind it does have the light, but i was in such a bright map i couldnt see it.
Pages: (1/1)