Author Topic: Sims 3 Crystal Hat Script  (Read 1627 times)

Ok heres the script im currently using

Code: [Select]
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 0.1 0.1";
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(2);
%client.applyBodyParts();
%client.applyBodyColors();
}
else
{
%player.unmountImage(2);
%player.mountImage(CrystalImage,$headslot);

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

Heres the model

http://www.mediafire.com/?v0v3e8k6i2ij2ov



Tell me whats wrong?

Tell me whats wrong?
That's your job.

If you're having problems getting it to appear over the head instead of inside/on/whatever it, just increase the last number of the image's offset.

That's your job.

If you're having problems getting it to appear over the head instead of inside/on/whatever it, just increase the last number of the image's offset.
Changed every number in the offset at 5 and tried that the crystal wont appear.

Where you're calling for $headslot in the command, just use 2. Getmountedimage() refers to the same slots that unmountimage() and mountimage() do.

Where you're calling for $headslot in the command, just use 2. Getmountedimage() refers to the same slots that unmountimage() and mountimage() do.

Ok ill take a shot at that

but whatshould i change the offset numbers to have just floating above the players head?

Ok ill take a shot at that

but whatshould i change the offset numbers to have just floating above the players head?
0 0 #

The higher #, the higher it is above the player's head.

im not a bg fan in scripts all i know is theres no underscore

im not a bg fan in scripts all i know is theres no underscore
If you're not going to help don't bother to post.

0 0 #

The higher #, the higher it is above the player's head.

Thanks Amade :)

ITS NOT A CRYSTAL ITS A PLUMBOB DAMNIT!

ITS NOT A CRYSTAL ITS A PLUMBOB DAMNIT!

 A plumbob with a emerald shine and a transparency

Its practically a crystal.

ITS NOT A CRYSTAL ITS A PLUMBOB DAMNIT!

Plumbob is the Name of the Crystal Cut

but it is an Emerald