I'm trying to mount an image to the head of the player when a weapon is drawn. Here's my code:
function UberTanaHandsImage::onMount(%this, %obj, %slot)
{
%obj.hideNode(rhand);
%obj.hideNode(lhand);
%obj.mountImage(UberTanaHeadimage);
}
function UberTanaHandsImage::onUnMount(%this, %obj, %slot)
{
%obj.unHideNode(rhand);
%obj.unHideNode(lhand);
%obj.unMountImage(5, UberTanaHeadimage);
}
For some reason, this causes the hands image not to mount. Only the head image mounts. Commenting out the "%obj.mountimage" line makes the hands image mount. It's a bit baffling.
Help?