Game Development Community

mountImage, no model display

by Cyril Dieumegard · in Torque Game Engine · 05/16/2009 (3:50 am) · 6 replies

Hi,

I have a little problem with mountImage.

I have my own player class derived from shapeBase.
The player model (dts) have mountpoint (it's model from torque soldier pack).

when i call mountImage(myGun, 0);
everything happend good and i'm sure that the gun model it's mounted (because when i recall mountImage, it's say that already mounted).

But my problem, no gun display in hand of soldier model.

thanks for your help

#1
05/16/2009 (8:40 am)
You used
PLAYER.mountImage(myGun,0);
?

Make sure that your weapon script has an exec() function in game.cs, with the other exec() functions.
#2
05/16/2009 (9:43 am)
i use this (in server side)

function serverCmdMit(%client)
{
   // Starting equipment
   %client.avatar.mountImage(gunImage,0);
}

datablock :

datablock ShapeBaseImageData(gunImage)
{
   // Basic Item properties
   shapeFile = "~/data/shapes/gun/gun.dts";
   emap = true;
   mountPoint = 0;   
};

and yes i define weapon script un game.cs exec.
#3
05/16/2009 (11:13 am)
Try %client.player.mountimage(gunImage,0);

If this doesn't work, try LocalClientConnection.player.mountImage(gunImage,0); in the game console. This will mount the gun on the player (this is risky over multiplayer). If this doesn't work, something else is wrong.
#4
05/16/2009 (12:05 pm)
this doesn't work, and it's avatar and no player (avatar is my own player class).

thanks for your help, if i find the solution, i explain it here.

#5
05/16/2009 (1:03 pm)
The LocalClientConnection method did not work? Then something is either wrong with your weapon model or datablock...try mounting CrossBowImage to make sure it isn't a problem with the soldier pack model.
#6
05/16/2009 (1:54 pm)
i replace my own player class (avatar) by the original player class and it's work, i thing that something wrong in my player class, i check

thank you