Neither of these work. They both cause syntax errors when the game is starting up.
eval("datablock ShapeBaseImageData("@%hatNameNoSpace@")
{
shapeFile = $CobS::HatsFP@%fileName;
emap = true;
mountPoint = $HeadSlot;
offset = \"0 0 0\";
eyeOffset = \"0 0 0.4\";
rotation = eulerToMatrix(\"0 0 0\");
scale = \"1 1 1\";
doColorShift = false;
colorShiftColor = \"1.000 1.000 1.000 1.000\";
};");
datablock ShapeBaseImageData(%hatNameNoSpace)
{
shapeFile = $CobS::HatsFP@%fileName;
emap = true;
mountPoint = $HeadSlot;
offset = "0 0 0";
eyeOffset = "0 0 0.4";
rotation = eulerToMatrix("0 0 0");
scale = "1 1 1";
doColorShift = false;
colorShiftColor = "1.000 1.000 1.000 1.000";
};
This on is unreadable but works :/
eval("datablock ShapeBaseImageData("@%hatNameNoSpace@"){ shapeFile = $CobS::HatsFP@%fileName; emap = true; mountPoint = $HeadSlot; offset = \"0 0 0\"; eyeOffset = \"0 0 0.4\"; rotation = eulerToMatrix(\"0 0 0\"); scale = \"1 1 1\"; doColorShift = false; colorShiftColor = \"1.000 1.000 1.000 1.000\"; };");
Is there one that's readable AND works? :D