Try this
package HugPackage
{
function armor::onMount(%this,%obj,%col,%slot)
{
Parent::onMount(%this,%obj,%col,%slot);
if(%col.dataBlock $= legoMobileVehicle)
%obj.playThread(2, armReadyBoth);
}
function armor::onUnMount(%this,%obj,%col,%slot)
{
Parent::onMount(%this,%obj,%col,%slot);
if(%col.dataBlock $= legoMobileVehicle)
%obj.playThread(2, root);
%obj.playThread(0, root);
}
};
activatepackage(HugPackage);