Blockland Forums > Modification Help
Sims 3 Crystal Hat Script
(1/3) > >>
Soon To Be:
Ok heres the script im currently using


--- 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 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]);
}
}
}
}
--- End code ---

Heres the model

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



Tell me whats wrong?
Amade:

--- Quote from: Soon To Be on August 06, 2010, 12:51:00 AM ---Tell me whats wrong?
--- End quote ---
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.
Soon To Be:

--- Quote from: Amade on August 06, 2010, 02:35:27 AM ---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.

--- End quote ---
Changed every number in the offset at 5 and tried that the crystal wont appear.
M:
Where you're calling for $headslot in the command, just use 2. Getmountedimage() refers to the same slots that unmountimage() and mountimage() do.
Soon To Be:

--- Quote from: M on August 06, 2010, 05:56:38 AM ---Where you're calling for $headslot in the command, just use 2. Getmountedimage() refers to the same slots that unmountimage() and mountimage() do.

--- End quote ---

Ok ill take a shot at that

but whatshould i change the offset numbers to have just floating above the players head?
Navigation
Message Index
Next page

Go to full version