Sweet thanks.
Ok I'm stuck again but with a different problem, I'm trying to make a button that would turn this script off and off like type /santahat does.
datablock ShapeBaseImageData(SantaHatImage)
{
shapeFile = "./Shapes/Santahat.dts";
emap = true;
mountPoint = $HeadSlot;
offset = "0 0 0.2";
eyeOffset = "0 0 0.4";
rotation = eulerToMatrix("0 0 0");
scale = "1 1 1";
doColorShift = true;
colorShiftColor = "1.000 0.000 0.000 1.000";
};
function serverCmdSantaHat(%client)
{
%player = %client.player;
if(isObject(%player))
{
if(%player.getMountedImage(2) $= nametoID(SantaHatImage))
{
%player.unmountImage(2);
%client.applyBodyParts();
%client.applyBodyColors();
}
else
{
%player.unmountImage(2);
%player.mountImage(SantaHatImage,2);
for(%i = 0;$hat[%i] !$= "";%i++)
{
%player.hideNode($hat[%i]);
%player.hideNode($accent[%i]);
}
}
}
}
I don't know what I need to add to be able to do that.