Blockland Forums > Modification Help
Packaging Help?
(1/1)
WRB852:
I tried to put this code at the bottom of the gun script, and I get errors.


--- Code: ---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);
--- End code ---

Can anyone tell me what I'm doing wrong?
Destiny/Zack0Wack0:
The word package needs to be lowercase.
Red_Guy:
always check your console for errors when something doesnt work.
Navigation
Message Index

Go to full version