Game Development Community

scaling a mounted item

by Martin Banks · in Torque 3D Professional · 09/03/2009 (11:21 am) · 2 replies

I have mounted an item as a weapon and wish to scale it after it has been mounted. I tried to use getMountedImage(slot), and then get the Item member from the resulting shapebaseimage returned. I then proceed to try and call the setScale method as follows:

%this.player.mountImage(MyImage, 0);
    %item = %this.player.getmountedImage(0);
    %item.item.setScale("1 1 1");


Apparently, there is no scaling methods directly linked to either the ShapeBaseImage or the Item classes. Is there a way to scale mounted items post-mount?

#1
09/03/2009 (12:28 pm)
While there is no ShapeBaseImage scaling by default (other than to match scale of the object it's mounted to), you can use this resource by Konrad Kiss to enable such.
#2
09/03/2009 (2:18 pm)
Sweeeet! thanks Michael, and Konrad.