package CannotDismount
{
function armor::onMount(%datablock,%player,%vehicle,%point)
{
if(%vehicle.dataBlock.cannotDismount)
%player.canDismount = 0;
return parent::onMount(%datablock,%player,%vehicle,%point);
}
};
activatePackage(CannotDismount);
Alternatively you could package the armor::onTrigger function BUT since that function is called every-time a player does anything and is packaged by a hundred other mods I would not recommend it.