I'm trying to spawn an explosion when a monster dies-The class I'm using is a straight extension of monster, and I've overloaded the PlayDying function as follows:
The sound plays, but it doesn't spawn the explosion (which is a extension of RocketExplosion-I tried changing bnettemporary to false, which didn't help). Help Anyone?
Code:
function PlayDyingEffects()
{
Spawn(class'AeroBotExplosion',,, Location, rotator(vect(0, 0, -1)));
PlaySound(sound'WeaponSounds.BExplosion5', SLOT_None, 3.5*TransientSoundVolume );
}
simulated function PlayDying(class<DamageType> DamageType, vector HitLoc)
{
PlayDyingEffects();
Destroy();
}
The sound plays, but it doesn't spawn the explosion (which is a extension of RocketExplosion-I tried changing bnettemporary to false, which didn't help). Help Anyone?