Author Topic: Unable to mount images to desired slot on player  (Read 694 times)

I would like to mount an image to the player at $HipSlot (7). However, I seem to only be able to mount images to $RightHandSlot(0) and $BackSlot (2). Does anyone know why this happens or how I can fix it?
« Last Edit: August 25, 2012, 09:42:01 PM by Greek2me »

I've never tried using $hipslot, but I had a similar problem with general image mounting a couple days ago, regardless if i used a direct number or $headslot/$backslot.

If I remember right, using mountimage(ImageName, $slot); didn't work, but when I used mountimage(ImageName.getID(), $slot); it worked fine.
This may or may not be the problem, but you could give it a shot anyway.

Just tried it, nope :/

Did Badspot add a restriction or something?

datablock shapeBaseImageData(AdminWandHat:MagicWandImage)
{
        mountPoint=2;
};

Did Badspot add a restriction or something?
datablock shapeBaseImageData(AdminWandHat:MagicWandImage)
{
        mountPoint=2;
};
He must have, because MountImage(GunImage, 2); and such always worked before, for me.

Unless that only works with console entries.

Player::mountImage(image, slot) has never mounted to a mountpoint. It mounts to a trigger slot. mouseFire() fires the first (0) one, altTrigger() fires the second (1) one, jump fires the third (2) one, crouch fires the fourth (3) one, jet fires the fifth (4) one. Not sure about any others.
« Last Edit: August 25, 2012, 09:09:36 PM by TripNick »

datablock shapeBaseImageData(AdminWandHat:MagicWandImage)
{
        mountPoint=2;
};
Yes, I have defined that in the datablock.

He must have, because MountImage(GunImage, 2); and such always worked before, for me.

Unless that only works with console entries.
That's because 2 is $BackSlot, which works.

Player::mountImage(image, slot) has never mounted to a mountpoint. It mounts to a trigger slot. mouseFire() fires the first (0) one, altTrigger() fires the second (1) one, jump fires the third (2) one, crouch fires the fourth (3) one, jet fires the fifth (4) one. Not sure about any others.
Sorry, I meant slot, not mountPoint.

These are the slots:
Code: [Select]
$RightHandSlot = 0;
$LeftHandSlot = 1;
$BackSlot = 2;
$RightFootSlot = 3;
$LeftFootSlot = 4;
$HeadSlot = 5;
$VisorSlot = 6;
$HipSlot = 7;

I have only gotten 0-2 to work. Why can't I use the others? Yes, I changed the mointPoint value in the datablock.

If you read what Slick said there, you'd know why.

You can only mount images to the slots 0-3 (4+ are off limits because having too many images results in them lagging behind sometimes, so Badspot restricted it to 4 images).

MountPoints are totally different. They define - irrespective of the slot the image is mounted in - what node the image is parented to. If your image mounts to $hipSlot, you do not use %player.mountImage(Image,$hipSlot) - you mount it in any available trigger slot and it will still be parented to the hip bone.

MountPoints are totally different. They define - irrespective of the slot the image is mounted in - what node the image is parented to. If your image mounts to $hipSlot, you do not use %player.mountImage(Image,$hipSlot) - you mount it in any available trigger slot and it will still be parented to the hip bone.
Oh ok, that makes sense. I didn't get what Slick was trying to say. Thanks