Page 1 of 1

Greasel Problem

PostPosted: Sat May 19, 12 1:28 pm
by atrey65789
function SpewBlood(vector Position)
{
local float size;
local FleshFragment chunk;

size = (CollisionRadius + CollisionHeight) / 2; // yes, we *are* using the Greasel's size... :)
if ((FRand() <0> 10.0))
{
chunk = spawn(class'FleshFragment', None,, Position);
if (chunk != None)
{
chunk.DrawScale = size / 25;
chunk.SetCollisionSize(chunk.CollisionRadius / chunk.DrawScale, chunk.CollisionHeight /
chunk.DrawScale);
chunk.bFixedRotationDir = True;
chunk.RotationRate = RotRand(False);
chunk.Velocity = VRand()*100;
chunk.Velocity.Z = chunk.Velocity.Z + 250;
}
}
else
[b]Super.SpewBlood(vector Position);[/b]
}


The bolded part is where it has trouble compiling,
It tells me that SpewBlood(); is an unknown function
even though its RIGHT THERE. lol..

PostPosted: Sat May 19, 12 1:47 pm
by ~DJ~
just remove it. The whole 'else super.spewblood();' thingie.

probably because the function doesn't exist in the super-class.

PostPosted: Sat May 19, 12 2:03 pm
by atrey65789
OHHH...yeah that fixed THAT problem, now I just gotta fix the others :P