I'm using Trader's script for mounting pieces to the player model (Hats etc),
datablock ShapeBaseImageData(spikehawkImage)
{
shapeFile = "./Shapes/Custom avatars/spikemohawk.dts";
emap = true;
mountPoint = $HeadSlot;
offset = "0 0.02 0.3";
eyeOffset = "0 0 0.4";
rotation = eulerToMatrix("0 0 0");
scale = "1 1 1";
doColorShift = true;
colorShiftColor = "0.200 0.200 0.200 1.000";
};
function serverCmdspikehawk(%client)
{
%player = %client.player;
if(isObject(%player))
{
if(%player.getMountedImage(2) $= nametoID(spikehawkImage))
{
%player.unmountImage(2);
%client.applyBodyParts();
%client.applyBodyColors();
}
else
{
%player.unmountImage(2);
%player.mountImage(spikehawkImage,2);
for(%i = 0;$hat[%i] !$= "";%i++)
{
%player.hideNode($hat[%i]);
%player.hideNode($accent[%i]);
}
}
}
}
the current way I'm doing it eats datablocks for each colour and I'm told I can make a bunch of pre-made images and use them instead. Also if I'm going to be using a system like that would there be a way to have certain mount points reuse the last texture the last custom model was using to save me and people choosing a colour each change. Again would it be possible to make a save system that saves the current selected set and loads every re-spawn/spawn. Any examples or scripts how I could do all this would be great.
I'm trying to go full out on this with best results possible, any help will be very very helpful and credited for your work.