Blockland Forums > Modification Help
Above Head Script
<< < (3/4) > >>
Chrono:
It might be the fact you're mounting to slot 2.

for everything with mounting and unmounting, change 2 to $HeadSlot
Soon To Be:

--- Quote from: Chrono on August 04, 2010, 03:30:48 PM ---It might be the fact you're mounting to slot 2.

for everything with mounting and unmounting, change 2 to $HeadSlot

--- End quote ---

Okay honestly i posted here because i have absolutely no scripting knowledge i took a pre-made script and edited it.


So could you possibly post the script that i should use ?
Chrono:

--- Quote from: Soon To Be on August 04, 2010, 02:05:56 AM ---
--- 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($headslot) $= nametoID(CrystalImage))
{
%player.unmountImage($headslot);
%client.applyBodyParts();
%client.applyBodyColors();
}
else
{
%player.unmountImage($headslot);
%player.mountImage(CrystalImage,$headslot);

for(%i = 0;$hat[%i] !$= "";%i++)
{
%player.hideNode($hat[%i]);
%player.hideNode($accent[%i]);
}
}
}
}


--- End code ---

--- End quote ---
Soon To Be:
Nope it still wont appear upon entering /crystal
General:
I replaced the crystal model with one of my hat models and the script worked perfectly, it has to be the model...
Navigation
Message Index
Next page
Previous page

Go to full version