I just need to know why this doesn't work. I can't figure it out. then again, I dunno what I'm doing either, so I'ma hoping to learn something as a result of this too. My part is the part commented out.
package stunstick
{
function stunstickProjectile::OnCollision(%this, %obj, %col, %fade, %pos, %normal)
{
if(%col.getClassName() $= "Player" || %col.getClassName() $= "AIPlayer")
{
%col.setWhiteOut(1);
}
parent::Oncollision(%this, %obj, %col, %fade, %pos, %normal);
}
/*
function stunstickProjectile::OnCollision(%this, %int)
{
if(%col.getClassName() $= "Player" || %col.getClassName() $= "AIPlayer")
{
tumble(%this,%int);
}
parent::Oncollision(%this, %int);
}
*/
};
ActivatePackage(stunstick);