Game Development Community

Vehicle mount1 player standing

by Howard Dortch · in Torque Game Engine · 03/26/2009 (8:23 am) · 2 replies

I mount a player to mount1 in my vehicle and he is standing. Mount0 driver sits like he should.
Here is the code for the vehicle:

mountPose[0] = "Sitting";
mountPointTransform[0] = "0 0 0 0 0 1 0";
isProtectedMountPoint[0] = false;

mountPose[1] = "Sitting";
mountPointTransform[1] = "0 0 0 0 0 1 0";
isProtectedMountPoint[1] = false;

and the mount call:
MyCar.mountObject(%player,%node);

and the onMount:
%obj.setActionThread(%vehicle.getDatablock().mountPose[%node],true,true);


Passenger player is always standing... anyone help?

#1
03/27/2009 (4:42 pm)
Do you have numMountPoints defined?
#2
08/08/2009 (11:16 am)
I just had the same problem and it turned out that I needed to add a Spine_dummy node to my skeleton in the player, place it near the torso. Unfortunatly this cause some of the animations to go a little funny, but just readjust them and export the player, it should work. This seems to be the node required to mount to the MountPos on the vehicle.

Hope this helps