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]); } } }}
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.
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 thatbut whatshould i change the offset numbers to have just floating above the players head?
im not a bg fan in scripts all i know is theres no underscore
0 0 #The higher #, the higher it is above the player's head.
ITS NOT A CRYSTAL ITS A PLUMBOB DAMNIT!