datablock ShapeBaseImageData(HatImage)
{
shapeFile = "./hat.dts";
emap = false;
doColorShift = false;
colorshiftcolor = "0 0 0 1";
mountPoint = $HeadSlot;
offset = "0 0 0.24";
eyeOffset = "-5 -5 -5";
rotation = "0 0 0 0";
className = "ItemImage";
};
function serverCmdHat(%client)
{
%player = %client.player;
if(isObject(%player))
{
if(%player.getMountedImage(2) $= nametoID(HatImage))
{
%player.unmountImage(2);
%client.applyBodyParts();
%client.applyBodyColors();
}
else
{
%player.unmountImage(2);
%player.mountImage(HatImage,2);
for(%i = 0;$hat[%i] !$= "";%i++)
{
%player.hideNode($hat[%i]);
%player.hideNode($accent[%i]);
%player.hideNode("headskin");
}
}
}
}
how would i change this to make this hat apply to everyone in the server, including bots?