Hey guys, I'm making a hat, just as a test. For some reason it's always too big, and mounted in the wrong place.
My mount code:
function servercmdCook(%client)
{
%client.chatMessage("\c3It is time.... to cook!");
%client.player.unmountImage(2);
%client.player.mountImage(ChefHatImage, 2);
}
datablock shapeBaseImageData(ChefHatImage)
{
shapeFile = "./models/chefHat.dts";
mountPoint = $headSlot;
emap = false;
mountPoint = 1;
rotation = eulerToMatrix("0 0 0");
offset = "0 0 0";
eyeOffset = 0;
scale = "0 0 0";
offset = "0 0 0";
doColorShift = false;
colorShiftColor = "50.000 50.000 50.000 255.000";
};Pictures


When I try to mount it to 5, or $headSlot, it doesn't do anything. The other hat add-ons I found always end up mounting to slot 2. No matter how small I scale it, it doesn't change actual size.
Edit: Wait, nevermind, that's just a syntax error blocking the code from updating. Now it's like this:

How do I make it smaller? Do I have to redo the .dts file?
Edit: Now for some reason it doesn't pop up at all :(.
Edit: Ok, I got it to go back somehow but now I'm mounting it to slot 2, but it's on the head for some reason. Weird. Still like the most recent picture.
Current Code:
function servercmdCook(%client)
{
%client.chatMessage("\c3It is time.... to cook!");
%client.player.unmountImage(5);
%client.player.mountImage(ChefHatImage, 2);
}
datablock shapeBaseImageData(ChefHatImage)
{
shapeFile = "./models/chefHat.dts";
mountPoint = $headSlot;
emap = false;
rotation = eulerToMatrix("0 0 0");
offset = "0 0 0";
eyeOffset = 0;
scale = "1 1 1";
offset = "0 0 0";
doColorShift = false;
colorShiftColor = "50.000 50.000 50.000 255.000";
};Edit: Physically making it smaller in blender didn't work either. Help :(
Edit: So it looks like you can't
scale images. Why is the model not shrinking down when I change it in the software, though?
Solved!: I had to apply rotation and scale :/