Blockland Forums > Modification Help
Above Head Script
Soon To Be:
Here i have a hat script for my up-coming mod but its not appearing above my head it keeps appearing in my chest :/
Heres script can someone point out problem?
--- Code: ---datablock ShapeBaseImageData(CrystalImage)
{
shapeFile = "./Crystal.dts";
emap = true;
mountPoint = $HeadSlot;
offset = "0 0.02 0.3";
eyeOffset = "0 0 0.4";
rotation = eulerToMatrix("0 0 0");
scale = "0.1 5 5";
doColorShift = false;
colorShiftColor = "50.000 50.000 50.000 255.000";
};
function serverCmdCrystal(%client)
{
%player = %client.player;
if(isObject(%player))
{
if(%player.getMountedImage(2) $= nametoID(CrystalImage))
{
%player.unmountImage(2);
%client.applyBodyParts();
%client.applyBodyColors();
}
else
{
%player.unmountImage(2);
%player.mountImage(CrystalImage,2);
for(%i = 0;$hat[%i] !$= "";%i++)
{
%player.hideNode($hat[%i]);
%player.hideNode($accent[%i]);
}
}
}
}
--- End code ---
Soon To Be:
Bump.
General:
Looks like something to do with your model, raise is along the z axis.
Reinforcements:
--- Code: --- mountPoint = $HeadSlot;
--- End code ---
Are you sure its called "HeadSlot" and not head? I've not really a scripter, but I've done programming before.
General:
--- Quote from: Reinforcements on August 04, 2010, 09:51:04 AM ---
--- Code: --- mountPoint = $HeadSlot;
--- End code ---
Are you sure its called "HeadSlot" and not head? I've not really a scripter, but I've done programming before.
--- End quote ---
Nah, it's right according to other scripts.