Author Topic: Packaging Help?  (Read 384 times)

I tried to put this code at the bottom of the gun script, and I get errors.

Code: [Select]
Package GunEchoPackage
{
function GunProjectile::onCollision(%this,%obj,%col,%fade,%pos,%normal)
{
echo(%this);
echo(%obj);
echo(%col);
echo(%fade);
echo(%pos);
echo(%normal);
Parent::onCollision(%this,%obj,%col,%fade,%pos,%normal);
}
};

activatepackage(gunechopackage);

Can anyone tell me what I'm doing wrong?

The word package needs to be lowercase.

always check your console for errors when something doesnt work.