OK, so my Ice chunk, I found it best to summon it via another projectile. However, whenever, that projectile dies, it spawns 2 of them. Here is the code snipets:
The Chuck Caller:
The place where it is called:
Any help? BTW I used the base of the shock projectile for it.
The Chuck Caller:
Code:
function MakeIceChunk()
{
local Projectile p;
MomentumTransfer = 0;
Damage = 0;
if (bSpawnedIce == false)
p = Spawn(class 'IceChunk', owner,, location, rotation);
bSpawnedIce = true;
}
Code:
simulated function Destroyed()
{
if (bSpawnedIce == false)
MakeIceChunk();
if (ShockBallEffect != None)
{
if ( bNoFX )
ShockBallEffect.Destroy();
else
ShockBallEffect.Kill();
}
Super.Destroyed();
}
Any help? BTW I used the base of the shock projectile for it.