Author Topic: No Explosion?  (Read 884 times)

For some reason theres no explosion for the weapon i'm making I can have it bounce or I can have an explosion does anyone know why this is ? if it helps I used the the spear script, ill post the script.

Code: [Select]
datablock ProjectileData(SgrenadeProjectile)
{
...

   armingDelay         = 2500;    //Here's your problem
   lifetime            = 2500;
   fadeDelay           = 3000;
   bounceElasticity    = 0.4;
   bounceFriction      = 0.3;
   isBallistic         = true;
   gravityMod = 1.0;

   hasLight    = false;
   lightRadius = 3.0;
   lightColor  = "0 0 0.5";

   uiName = "Smoke_grenade";
};

Arming delay = lifetime, this means you projectile "dies" out before it ever becomes able to explode. One way to fix this is to make armingDelay shorter. You could also simply add the line "explodeOnDeath = true;" in the datablock, which will cause the projectile to explode once it's lifetime runs out without needing to hit something to trigger it's explosion. You could also combine both of these together.

Ty but wtf wheres ephi hes always on my ass when I post in coding section its just not right with out him D:

Ty but wtf wheres ephi hes always on my ass when I post in coding section its just not right with out him D:
Don't fret, he's probably working on something.


Ty but wtf wheres ephi hes always on my ass when I post in coding section its just not right with out him D:
hurrdurrr

Ty but wtf wheres ephi hes always on my ass when I post in coding section its just not right with out him D:

I felt it wasn't a stupid question - Its not obvious to someone new at projectiles, although you could have checked the HEGrenade script.

hurrdurrr

Valuable input from the village idiot, as usual.