this is an example of what i use normally
function Player::unHideNode(%this,%node)
{
parent::unHideNode(%this,%node);
if(%node $= "helmet" || %node $= "pointyHelmet" || %node $= "flareHelmet" || %node $= "bicorn" || %node $= "copHat" || %node $= "knitHat" || %node $= "scouthat")
{
if(getSubStr(%this.getMountedImage(3).getName(),0,3) $= "Hat") //change this to get if the player is wearing a hat, check for the mounted hat's class and see if its HatItem
{
%this.hideNode(%node);
%this.hideNode("visor");
%this.hideNode("plume");
%this.hideNode("triplume");
%this.hideNode("septplume");
}
}
}
if you want head then just change all the %node $= "helmet" stuff to just %node $= "headskin" and it will hide the head plus visor, plume etc.