Try this.
-snip-
BTW, I'm guessing on the playThread bit.
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);
}
};
activatepackage(HugPackage);
No idea what action number hugging sets itself to. So just replace the hug with the playThread.